/*_hs_*/;window.sas_usePostStandard = true;;window.sas_useID5Module = true;;/*_hs_*/var sas=sas||{};sas.utils=sas.utils||{},sas.events=sas.events||{},sas.cmp=sas.cmp||{},sas.consent=sas.consent||{},function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:a})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t,n){"use strict";function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,a=arguments[t];for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}t.b=function(e,t){var n=!0;return C(e,(function(e){return n=n&&t(e)})),n},t.q=function(){y()&&p&&console.info.apply(console,m(arguments,"INFO:"))},t.r=function(){y()&&f&&console.warn.apply(console,m(arguments,"WARNING:"))},t.p=v,t.t=function(e){g=!!e},t.l=y,t.g=b,t.k=I,t.o=w,t.h=_,t.m=function(e){return b(e,o)},t.n=function(e){return b(e,s)},t.i=function(e){return b(e,c)},t.j=function(e){return void 0!==e},t.f=function(e){return(e=window.document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]*)\\s*(;|$)"))?decodeURIComponent(e[2]):null},t.s=function(e,t,n){document.cookie="".concat(e,"=").concat(encodeURIComponent(t)).concat(""!==n?"; expires=".concat(n):"","; path=/")},t.a=function(e,t,n){var o,s=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};try{var c=s.method||(n?"POST":"GET");document.createElement("a").href=e;var l,d="object"===r(t)&&null!==t?t:{success:function(){!function(){y()&&u&&console.log.apply(console,m(arguments,"MESSAGE:"))}("xhr success")},error:function(e){v("xhr error",null,e)}};"function"==typeof t&&(d.success=t),(o=new window.XMLHttpRequest).onreadystatechange=function(){var e;o.readyState===O&&(200<=(e=o.status)&&e<300||304===e?d.success(o.responseText,o):d.error(o.statusText,o))},o.ontimeout=function(){v("  xhr timeout after ",o.timeout,"ms")},"GET"===c&&n&&(a((l=function(e,t){var n=document.createElement("a");return t&&"noDecodeWholeURL"in t&&t.noDecodeWholeURL?n.href=e:n.href=decodeURIComponent(e),t=t&&"decodeSearchAsString"in t&&t.decodeSearchAsString,{href:n.href,protocol:(n.protocol||"").replace(/:$/,""),hostname:n.hostname,port:+n.port,pathname:n.pathname.replace(/^(?!\/)/,"/"),search:t?n.search:function(e){return e?e.replace(/^\?/,"").split("&").reduce((function(e,t){var n=t.split("=");t=2,n=function(e){if(Array.isArray(e))return e}(n=n)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var a,r,i=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(i.push(a.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw r}}return i}}(n,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),t=n[0],n=n[1];return/\[\]$/.test(t)?(e[t=t.replace("[]","")]=e[t]||[],e[t].push(n)):e[t]=n||"",e}),{}):{}}(n.search||""),hash:(n.hash||"").replace(/^#/,""),host:n.host||window.location.host}}(e,s)).search,n),e=function(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?":".concat(e.port):""))+(e.pathname||"")+(e.search?"?".concat(function(e){return Object.keys(e).map((function(t){return Array.isArray(e[t])?e[t].map((function(e){return"".concat(t,"[]=").concat(e)})).join("&"):"".concat(t,"=").concat(e[t])})).join("&")}(e.search||"")):"")+(e.hash?"#".concat(e.hash):"")}(l)),o.open(c,e,!0),s.withCredentials&&(o.withCredentials=!0),C(s.customHeaders,(function(e,t){o.setRequestHeader(t,e)})),s.preflight&&o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.setRequestHeader("Content-Type",s.contentType||"text/plain"),"POST"===c&&n?o.send(n):o.send()}catch(e){v("xhr construction",e)}},t.d=function(e,t,n){"loading"!==document.readyState?S(e,t,n):document.addEventListener("DOMContentLoaded",(function(){S(e,t,n)}))},t.c=function(e){for(var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,a=function(e,t){if(I(Math.imul))return Math.imul(e,t);var n=(4194303&e)*(t|=0);return 4290772992&e&&(n+=(4290772992&e)*t|0),0|n},r=3735928559^n,i=1103547991^n,o=0;o<e.length;o++)r=a(r^(t=e.charCodeAt(o)),2654435761),i=a(i^t,1597334677);return r=a(r^r>>>16,2246822507)^a(i^i>>>13,3266489909),(4294967296*(2097151&(i=a(i^i>>>16,2246822507)^a(r^r>>>13,3266489909)))+(r>>>0)).toString()},t.e=function(e,t,n,a,r){for(t=t.split?t.split("."):t,a=0;a<t.length;a++)e=e?e[t[a]]:r;return e===r?n:e};var o="Number",s="Object",c="Boolean",l=Object.prototype.toString,d="TRUE"===function(e){return null!==(e=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(window.location.search))?decodeURIComponent(e[1].replace(/\+/g," ")):""}("id5_debug").toUpperCase(),u=(t=Boolean(window.console),Boolean(t&&window.console.log)),p=Boolean(t&&window.console.info),f=Boolean(t&&window.console.warn),h=Boolean(t&&window.console.error),g=!1;function v(){y()&&h&&console.error.apply(console,m(arguments,"ERROR:"))}function m(e,t){return e=[].slice.call(e),t&&e.unshift(t),e.unshift("display: inline-block; color: #fff; background: #1c307e; padding: 1px 4px; border-radius: 3px;"),e.unshift("%cID5"),e}function y(){return d||g}function b(e,t){return l.call(e)==="[object "+t+"]"}function I(e){return b(e,"Function")}function w(e){return b(e,"String")}function _(e){return b(e,"Array")}function C(e,t){if(!function(e){if(!e)return 1;if(_(e)||w(e))return!(0<e.length);for(var t in e)if(hasOwnProperty.call(e,t))return;return 1}(e)){if(I(e.forEach))return e.forEach(t,this);var n=0,a=e.length;if(0<a)for(;n<a;n++)t(e[n],n,e);else for(n in e)hasOwnProperty.call(e,n)&&t.call(this,e[n],n)}}var O=4;function S(e,t,n){var a=new Image;a.src=e,I(t)&&t(),I(n)&&(a.complete?n():a.addEventListener("load",n))}},function(e,t){e.exports={STORAGE_CONFIG:{ID5:{name:"id5id",expiresDays:90},LAST:{name:"id5id_last",expiresDays:90},CONSENT_DATA:{name:"id5id_cached_consent_data",expiresDays:30},PD:{name:"id5id_cached_pd",expiresDays:30},PRIVACY:{name:"id5id_privacy",expiresDays:30}},LEGACY_COOKIE_NAMES:["id5.1st","id5id.1st"],PRIVACY:{JURISDICTIONS:{gdpr:!0,ccpa:!1,lgpd:!0,other:!1}},ID5_EIDS_SOURCE:"id5-sync.com"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),r=(t=n(1),n.n(t));function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,"localStorageAllowedCallback",void 0),o(this,"localStorage",void 0),this.localStorageAllowedCallback=t,this.localStorage=n}var t,n,s;return t=e,s=[{key:"pdCacheConfig",value:function(e){return{name:"".concat(r.a.STORAGE_CONFIG.PD.name,"_").concat(e),expiresDays:r.a.STORAGE_CONFIG.PD.expiresDays}}},{key:"makeStoredHash",value:function(e){return Object(a.c)("string"==typeof e?e:"")}},{key:"nbCacheConfig",value:function(e){return{name:"".concat(r.a.STORAGE_CONFIG.ID5.name,"_").concat(e,"_nb"),expiresDays:r.a.STORAGE_CONFIG.ID5.expiresDays}}},{key:"storedDataMatchesCurrentData",value:function(e,t){return null==e||e===t}}],(n=[{key:"get",value:function(e){try{if(!0===this.localStorageAllowedCallback())return this.localStorage.getItemWithExpiration(e);Object(a.p)("clientStore.get() has been called without localStorageAllowed")}catch(e){Object(a.p)(e)}}},{key:"clear",value:function(e){try{this.localStorage.removeItemWithExpiration(e)}catch(e){Object(a.p)(e)}}},{key:"put",value:function(e,t){try{!0===this.localStorageAllowedCallback()?this.localStorage.setItemWithExpiration(e,t):Object(a.p)("clientStore.put() has been called without localStorageAllowed")}catch(e){Object(a.p)(e)}}},{key:"localStorageAllowed",value:function(){return this.localStorageAllowedCallback()}},{key:"isLocalStorageAvailable",value:function(){return this.localStorage.isAvailable()}},{key:"getResponseFromLegacyCookie",value:function(){var e;return r.a.LEGACY_COOKIE_NAMES.forEach((function(t){Object(a.f)(t)&&(e=Object(a.f)(t))})),e?JSON.parse(e):null}},{key:"getResponse",value:function(){var e=this.get(r.a.STORAGE_CONFIG.ID5);return e&&JSON.parse(decodeURIComponent(e))}},{key:"clearResponse",value:function(){this.clear(r.a.STORAGE_CONFIG.ID5)}},{key:"putResponse",value:function(e){this.put(r.a.STORAGE_CONFIG.ID5,encodeURIComponent(e))}},{key:"getHashedConsentData",value:function(){return this.get(r.a.STORAGE_CONFIG.CONSENT_DATA)}},{key:"clearHashedConsentData",value:function(){this.clear(r.a.STORAGE_CONFIG.CONSENT_DATA)}},{key:"putHashedConsentData",value:function(e){this.put(r.a.STORAGE_CONFIG.CONSENT_DATA,e.hashCode())}},{key:"getHashedPd",value:function(t){return this.get(e.pdCacheConfig(t))}},{key:"storedPdMatchesPd",value:function(t,n){return e.storedDataMatchesCurrentData(this.getHashedPd(t),e.makeStoredHash(n))}},{key:"clearHashedPd",value:function(t){this.clear(e.pdCacheConfig(t))}},{key:"putHashedPd",value:function(t,n){this.put(e.pdCacheConfig(t),e.makeStoredHash(n))}},{key:"getDateTime",value:function(){return new Date(this.get(r.a.STORAGE_CONFIG.LAST)).getTime()}},{key:"clearDateTime",value:function(){this.clear(r.a.STORAGE_CONFIG.LAST)}},{key:"setDateTime",value:function(e){this.put(r.a.STORAGE_CONFIG.LAST,e)}},{key:"getNb",value:function(t){return(t=this.get(e.nbCacheConfig(t)))?parseInt(t):0}},{key:"clearNb",value:function(t){this.clear(e.nbCacheConfig(t))}},{key:"setNb",value:function(t,n){this.put(e.nbCacheConfig(t),n)}},{key:"incNb",value:function(e,t){return this.setNb(e,++t),t}},{key:"clearAll",value:function(e){this.clearResponse(),this.clearDateTime(),this.clearNb(e),this.clearHashedPd(e),this.clearHashedConsentData()}},{key:"removeLegacyCookies",value:function(e){var t=new Date(Date.now()-1e3).toUTCString();r.a.LEGACY_COOKIE_NAMES.forEach((function(n){Object(a.s)("".concat(n),"",t),Object(a.s)("".concat(n,"_nb"),"",t),Object(a.s)("".concat(n,"_").concat(e,"_nb"),"",t),Object(a.s)("".concat(n,"_last"),"",t),Object(a.s)("".concat(n,".cached_pd"),"",t),Object(a.s)("".concat(n,".cached_consent_data"),"",t)}))}},{key:"storedConsentDataMatchesConsentData",value:function(t){return e.storedDataMatchesCurrentData(this.getHashedConsentData(),t.hashCode())}}])&&i(t.prototype,n),s&&i(t,s),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var a=n(0),r=(t=n(1),n.n(t)),i=(n(4),["vendorData","ccpaString"]);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,a=arguments[t];for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function l(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u={tcfv1:{objName:"__cmpCall",objKeys:["command","parameter"],returnObjName:"__cmpReturn"},tcfv2:{objName:"__tcfapiCall",objKeys:["command","version"],returnObjName:"__tcfapiReturn"},uspv1:{objName:"__uspapiCall",objKeys:["command","version"],returnObjName:"__uspapiReturn"}},p=Object.freeze({NONE:"none",TCF_V1:"TCFv1",TCF_V2:"TCFv2",USP_V1:"USPv1",ID5_ALLOWED_VENDORS:"ID5"}),f=function(){function e(){s(this,e),d(this,"api",p.NONE),d(this,"consentString",void 0),d(this,"gdprApplies",!1),d(this,"vendorData",{}),d(this,"allowedVendors",void 0),d(this,"hasCcpaString",!1),d(this,"ccpaString","")}return l(e,[{key:"canIUseLocalStorage",value:function(){switch(this.api){case p.NONE:return!0;case p.TCF_V1:return!this.gdprApplies||!0===Object(a.e)(this,"vendorData.purposeConsents.1");case p.TCF_V2:return!this.gdprApplies||!0===Object(a.e)(this,"vendorData.purpose.consents.1");case p.ID5_ALLOWED_VENDORS:return this.allowedVendors.includes("131");case p.USP_V1:return!0}}},{key:"hashCode",value:function(){this.vendorData,this.ccpaString;var e=function(e,t){if(null==e)return{};var n,a=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols)for(var r=Object.getOwnPropertySymbols(e),i=0;i<r.length;i++)n=r[i],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(this,i);return Object(a.c)(JSON.stringify(e))}}]),e}(),h=function(){function e(t){s(this,e),d(this,"consentData",void 0),d(this,"storedPrivacyData",void 0),d(this,"localStorage",void 0),d(this,"_consentRequested",!1),this.localStorage=t,this.resetConsentData()}return l(e,[{key:"requestConsent",value:function(e,t,n,r){if(e)this.consentData=new f,Object(a.r)("cmpApi: ID5 is operating in forced consent mode and will not retrieve any consent signals from the CMP"),r(this.consentData);else if(this._consentRequested)r(this.consentData);else switch(this.consentData=new f,this._consentRequested=!0,t){case"static":this.parseStaticConsentData(n,r);break;case"iab":this.lookupIabConsent(r);break;default:Object(a.p)("cmpApi: Unknown consent API: ".concat(t)),this.resetConsentData(),r(this.consentData)}}},{key:"getOrCreateConsentData",value:function(){return this.consentData||(this.consentData=new f),this.consentData}},{key:"parseStaticConsentData",value:function(t,n){t=t||{};var r={};Object(a.n)(t.getConsentData)?r=e.parseTcfData(t,1):Object(a.n)(t.getTCData)?r=e.parseTcfData(t.getTCData,2):Object(a.h)(t.allowedVendors)?r={api:p.ID5_ALLOWED_VENDORS,allowedVendors:t.allowedVendors.map((function(e){return String(e)})),gdprApplies:!0}:Object(a.n)(t.getUSPData)?r=e.parseUspData(t.getUSPData):Object(a.r)("cmpApi: No static consent data detected! Using defaults."),o(this.consentData,r),Object(a.q)("cmpApi: Detected API '".concat(this.consentData.api,"' from static consent data"),t),n(this.consentData)}},{key:"lookupIabConsent",value:function(e){var t=this,n=[],a=function(a){return n[a]=!1,function(r){n[a]||(n[a]=!0,r&&o(t.consentData,r),n.every((function(e){return e}))&&e(t.consentData))}},r=a(0);a=a(1);this.lookupTcf(r),this.lookupUsp(a)}},{key:"lookupUsp",value:function(t){var n=(r=e.findUsp()).uspapiFrame,r=r.uspapiFunction;if(!n)return Object(a.r)("cmpApi: USP not found! Using defaults for CCPA."),void t();(Object(a.k)(r)?(Object(a.q)("cmpApi: Detected USP is directly accessible, calling it now."),r):(Object(a.q)("cmpApi: Detected USP is outside the current iframe. Using message passing."),e.buildCmpSurrogate("uspv1",n)))("getUSPData",1,(function(n,r){r?t(e.parseUspData(n)):(Object(a.p)("cmpApi: USP callback not succesful. Using defaults for CCPA."),t())}))}},{key:"lookupTcf",value:function(t){var n=(i=e.findTCF()).cmpVersion,r=i.cmpFrame,i=i.cmpFunction;if(!r)return Object(a.r)("cmpApi: TCF not found! Using defaults for GDPR."),void t();Object(a.k)(i)?this.lookupDirectTcf(n,i,t):(Object(a.q)("cmpApi: Detected TCF is outside the current iframe. Using message passing."),this.lookupMessageTcf(n,r,t))}},{key:"lookupMessageTcf",value:function(t,n,a){n=e.buildCmpSurrogate(1===t?"tcfv1":"tcfv2",n),this.lookupDirectTcf(t,n,a)}},{key:"lookupDirectTcf",value:function(t,n,r){function i(e,t,n){Object(a.q)("cmpApi: TCFv".concat(e," - Received a call back: ").concat(t),n)}function o(e,t){Object(a.p)("cmpApi: TCFv".concat(e," - Received insuccess: ").concat(t,". Please check your CMP setup. Using defaults for GDPR."))}var s,c={},l={},d=function(t){return l[t]=!1,function(n,a){l[t]=!0,a?(i(1,t,n),c[t]=n):o(1,t),Object.values(l).every((function(e){return e}))&&r(e.parseTcfData(c,1))}};1===t?(s=d("getConsentData"),d=d("getVendorConsents"),n("getConsentData",null,s),n("getVendorConsents",null,d)):2===t&&n("addEventListener",t,(function(t,n){if(i(2,"event",t),!n)return o(2,"addEventListener"),void r();!t||!1!==t.gdprApplies&&"tcloaded"!==t.eventStatus&&"useractioncomplete"!==t.eventStatus||r(e.parseTcfData(t,2))}))}},{key:"resetConsentData",value:function(){this.consentData=void 0,this.storedPrivacyData=void 0,this._consentRequested=!1}},{key:"isLocalStorageAllowed",value:function(e,t){return!0===e||!0===t?(Object(a.r)("cmpApi: Local storage access granted by configuration override, consent will not be checked"),!0):this.consentData&&this.consentData.api!==p.NONE?this.consentData.canIUseLocalStorage():this.isProvisionalLocalStorageAllowed()}},{key:"isProvisionalLocalStorageAllowed",value:function(){var e;return Object(a.n)(this.storedPrivacyData)||(e=this.localStorage.getItemWithExpiration(r.a.STORAGE_CONFIG.PRIVACY),this.storedPrivacyData=e&&JSON.parse(e)),!(!this.storedPrivacyData||!0!==this.storedPrivacyData.id5_consent)||(this.storedPrivacyData&&void 0!==this.storedPrivacyData.jurisdiction?!1===(void 0!==r.a.PRIVACY.JURISDICTIONS[this.storedPrivacyData.jurisdiction]&&r.a.PRIVACY.JURISDICTIONS[this.storedPrivacyData.jurisdiction])||!0===this.storedPrivacyData.id5_consent:void 0)}},{key:"setStoredPrivacy",value:function(e){try{Object(a.n)(e)?(this.storedPrivacyData=e,this.localStorage.setItemWithExpiration(r.a.STORAGE_CONFIG.PRIVACY,JSON.stringify(e))):Object(a.q)("cmpApi: Cannot store privacy if it is not an object: ",e)}catch(e){Object(a.p)(e)}}}],[{key:"buildCmpSurrogate",value:function(e,t){return function(n,r,i){var o=Math.random()+"",s=u[e],c={},l={};l[s.objKeys[0]]=n,l[s.objKeys[1]]=r,l.callId=o,c[s.objName]=l,l=function e(t){(t=Object(a.e)(t,"data.".concat(s.returnObjName)))&&t.callId===o&&(window.removeEventListener("message",e),i(t.returnValue,t.success))},window.addEventListener("message",l,!1),t.postMessage(c,"*")}}},{key:"parseUspData",value:function(e){if(Object(a.n)(e)&&Object(a.o)(e.uspString))return{api:p.USP_V1,hasCcpaString:!0,ccpaString:e.uspString};Object(a.p)("cmpApi: No or malformed USP data. Using defaults for CCPA.")}},{key:"parseTcfData",value:function(t,n){var r,i;if(1===n)r=e.isValidV1ConsentObject,i=e.normalizeV1Data;else{if(2!==n)return void Object(a.p)("cmpApi: No or malformed CMP data. Using defaults for GDPR.");r=e.isValidV2ConsentObject,i=e.normalizeV2Data}if(r(t))return i(t);Object(a.p)("cmpApi: Invalid CMP data. Using defaults for GDPR.",t)}},{key:"isValidV1ConsentObject",value:function(e){var t=Object(a.e)(e,"getConsentData.gdprApplies");return!!Object(a.i)(t)&&(!1===t||Object(a.o)(e.getConsentData.consentData)&&Object(a.n)(e.getVendorConsents)&&1<Object.keys(e.getVendorConsents).length)}},{key:"isValidV2ConsentObject",value:function(e){var t=e&&e.gdprApplies;e=e&&e.tcString;return!!Object(a.i)(t)&&(!1===t||Object(a.o)(e))}},{key:"normalizeV1Data",value:function(e){return{consentString:e.getConsentData.consentData,vendorData:e.getVendorConsents,gdprApplies:e.getConsentData.gdprApplies,api:p.TCF_V1}}},{key:"normalizeV2Data",value:function(e){return{consentString:e.tcString,vendorData:e,gdprApplies:e.gdprApplies,api:p.TCF_V2}}},{key:"findTCF",value:function(){for(var e,t,n=0,a=window;!e;){try{if("function"==typeof a.__tcfapi||"function"==typeof a.__cmp){t="function"==typeof a.__tcfapi?(n=2,a.__tcfapi):(n=1,a.__cmp),e=a;break}}catch(e){}try{if(a.frames.__tcfapiLocator){n=2,e=a;break}}catch(e){}try{if(a.frames.__cmpLocator){n=1,e=a;break}}catch(e){}if(a===window.top)break;a=a.parent}return{cmpVersion:n,cmpFrame:e,cmpFunction:t}}},{key:"findUsp",value:function(){for(var e,t,n=window;!e;){try{if("function"==typeof n.__uspapi){t=n.__uspapi,e=n;break}}catch(e){}try{if(n.frames.__uspapiLocator){e=n;break}}catch(e){}if(n===window.top)break;n=n.parent}return{uspapiFrame:e,uspapiFunction:t}}}]),e}()},function(e,t,n){"use strict";function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return o}));var i="_exp",o=function(){function e(t){var n=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r(this,"available",!1),r(this,"win",void 0),r(this,"writingEnabled",void 0),this.win=t,this.writingEnabled=n,n="__id5test";try{this.writingEnabled&&this.win.localStorage.setItem(n,n),this.win.localStorage.removeItem(n),this.available=!0}catch(t){}}var t,n;return t=e,(n=[{key:"isAvailable",value:function(){return this.available}},{key:"getItem",value:function(e){if(this.available)return this.win.localStorage.getItem(e)}},{key:"setItem",value:function(e,t){this.available&&this.writingEnabled&&this.win.localStorage.setItem(e,t)}},{key:"removeItem",value:function(e){this.available&&this.win.localStorage.removeItem(e)}},{key:"getItemWithExpiration",value:function(e){var t=e.name;return!(e=this.getItem(t+i))||new Date(e).getTime()-Date.now()<=0?(this.removeItemWithExpiration({name:t}),null):this.getItem(t)}},{key:"setItemWithExpiration",value:function(e,t){var n=e.name;e=e.expiresDays,e=Date.now()+864e5*e,e=new Date(e).toUTCString();this.setItem(n+i,e),this.setItem(n,t)}},{key:"removeItemWithExpiration",value:function(e){e=e.name,this.removeItem(e),this.removeItem(e+i)}}])&&a(t.prototype,n),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(0);function r(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"options",void 0),i(this,"providedOptions",void 0),i(this,"invalidSegments",void 0),this.options={debugBypassConsent:!1,allowLocalStorageWithoutConsentApi:!1,cmpApi:"iab",consentData:{getConsentData:{consentData:void 0,gdprApplies:void 0},getVendorConsents:{}},refreshInSeconds:7200,partnerId:void 0,partnerUserId:void 0,callbackOnAvailable:void 0,callbackOnUpdates:void 0,callbackTimeoutInMs:void 0,pd:void 0,abTesting:{enabled:!1,controlGroupPct:0},provider:void 0,maxCascades:8,applyCreativeRestrictions:!1,segments:void 0},this.providedOptions={},!t.partnerId||"number"!=typeof t.partnerId)throw new Error("partnerId is required and must be a number");this.invalidSegments=0,this.updOptions(t)}var t,n;return t=e,(n=[{key:"getOptions",value:function(){return this.options}},{key:"getProvidedOptions",value:function(){return this.providedOptions}},{key:"getInvalidSegments",value:function(){return this.invalidSegments}},{key:"updOptions",value:function(t){var n=this,r=this;if(Object(a.n)(t)){if(Object(a.m)(this.options.partnerId)&&Object(a.m)(t.partnerId)&&t.partnerId!==this.options.partnerId)throw new Error("Cannot update config with a different partnerId");var i=function(e,t){n.options[e]=t,n.providedOptions[e]=t};Object.keys(t).forEach((function(n){var o,c,l;"segments"===n?(l=t[n],o=[],Object(a.h)(l)?(l.forEach((function(e,t){return t="segments[".concat(t,"]"),Object(a.h)(e.ids)&&Object(a.b)(e.ids,a.o)?e.ids.length<1?(Object(a.p)("Config option ".concat(t,".ids should contain at least one segment ID")),void(r.invalidSegments+=1)):Object(a.o)(e.destination)?void o.push(e):(s("".concat(t,".destination"),"String",e.destination),void(r.invalidSegments+=1)):(s("".concat(t,".ids"),"Array of String",e.ids),void(r.invalidSegments+=1))})),i(n,o)):s(n,"Array",l)):(c=e.configTypes[n],l=t[n],Object(a.g)(l,c)?i(n,l):s(n,c,l))}))}else Object(a.p)("Config options must be an object")}}])&&r(t.prototype,n),e}();function s(e,t,n){Object(a.p)("Config option ".concat(e," must be of type ").concat(t," but was ").concat(toString.call(n),". Ignoring..."))}i(o,"configTypes",{debugBypassConsent:"Boolean",allowLocalStorageWithoutConsentApi:"Boolean",cmpApi:"String",consentData:"Object",refreshInSeconds:"Number",partnerId:"Number",partnerUserId:"String",callbackOnAvailable:"Function",callbackOnUpdates:"Function",callbackTimeoutInMs:"Number",pd:"String",abTesting:"Object",provider:"String",maxCascades:"Number",applyCreativeRestrictions:"Boolean"})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n=n(7),window.ID5||(window.ID5=n.a)},function(e,t,n){"use strict";var a=n(0),r=n(8),i=n(2),o=n(3),s=n(9),c=n(10),l=n(4),d=n(5);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var a,r,i=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(i.push(a.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function f(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,"loaded",!1),h(this,"_isUsingCdn",!1),h(this,"_referer",!1),h(this,"_version",c.a),h(this,"versions",{}),this.loaded=!0,this._isUsingCdn=!!(document&&document.currentScript&&document.currentScript.src&&0===document.currentScript.src.indexOf("https://cdn.id5-sync.com")),this._referer=Object(r.a)(),this.versions[c.a]=!0}var t,n;return t=e,(n=[{key:"debug",get:function(){return Object(a.l)()},set:function(e){Object(a.t)(e)}},{key:"init",value:function(e){try{Object(a.q)("Invoking Id5Api.init",arguments);var t=new d.a(e),n=t.getOptions(),r=new l.a(window.top,!n.applyCreativeRestrictions),c=new o.a(r),u=new i.a((function(){return c.isLocalStorageAllowed(n.allowLocalStorageWithoutConsentApi,n.debugBypassConsent)}),r),p=new s.a(t,u,c);return this.getId(p,!1),Object(a.q)("ID5 initialized for partner ".concat(n.partnerId," with referer ").concat(this._referer.referer," and options"),e),p}catch(e){Object(a.p)("Exception caught from Id5Api.init",e)}}},{key:"refreshId",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if(!Object(a.i)(t))throw new Error("Invalid signature for Id5Api.refreshId: second parameter must be a boolean");try{Object(a.q)("Invoking Id5Api.refreshId",arguments),e.startRefresh(t),e.updateOptions(n),e.consentManagement.resetConsentData(),this.getId(e,t)}catch(e){Object(a.p)("Exception caught from Id5Api.refreshId",e)}return e}},{key:"getId",value:function(e){var t,n,r=this,i=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=e.getOptions(),s=0,c=!1,l=!1,d=!1;e.localStorageAllowed()&&(t=e.clientStore.getResponse(),n=e.clientStore.getDateTime(),c=n<=0||Date.now()-n>1e3*o.refreshInSeconds,s=e.clientStore.getNb(o.partnerId),l=!e.clientStore.storedPdMatchesPd(o.partnerId,o.pd)),t||(t=e.clientStore.getResponseFromLegacyCookie(),c=!0),t&&t.universal_uid&&!l?(e.setUserId(t,!0),s=e.clientStore.incNb(o.partnerId,s),d=!0,Object(a.q)("ID5 User ID available from cache:",{storedResponse:t,storedDateTime:n,refreshNeeded:c})):t&&t.universal_uid&&l?Object(a.q)("PD value has changed, so ignoring User ID from cache"):t&&!t.universal_uid?Object(a.p)("Invalid stored response: ",t):Object(a.q)("No ID5 User ID available from cache"),e.consentManagement.requestConsent(o.debugBypassConsent,o.cmpApi,o.consentData,(function(n){var p,f,h,g,v;!1!==e.localStorageAllowed()?(Object(a.q)("Consent to access local storage is: "+e.localStorageAllowed()),t=e.clientStore.getResponse()||e.clientStore.getResponseFromLegacyCookie(),v=!e.clientStore.storedConsentDataMatchesConsentData(n),e.clientStore.putHashedConsentData(n),e.clientStore.putHashedPd(o.partnerId,o.pd),t&&t.universal_uid&&t.signature&&!c&&!v&&!l&&!i||(p="https://id5-sync.com/g/v2/".concat(o.partnerId,".json"),f=n.gdprApplies?1:0,h={partner:o.partnerId,v:r._version,o:"api",gdpr:f,rf:r._referer.referer,u:r._referer.stack[0]||window.location.href,top:r._referer.reachedTop?1:0,localStorage:e.clientStore.isLocalStorageAvailable()?1:0,nbPage:s,id5cdn:r._isUsingCdn},g=n.gdprApplies?n.consentString:void 0,Object(a.j)(g)&&(h.gdpr_consent=g),Object(a.j)(n.allowedVendors)&&(h.allowed_vendors=n.allowedVendors),v=t&&t.signature?t.signature:void 0,Object(a.j)(v)&&(h.s=v),n.hasCcpaString&&(h.us_privacy=n.ccpaString),Object.entries({pd:"pd",partnerUserId:"puid",provider:"provider",segments:"segments"}).forEach((function(e){e=(t=u(e,2))[0];var t=t[1];Object(a.j)(o[e])&&(h[t]=o[e])})),!0===o.abTesting.enabled&&(h.ab_testing={enabled:!0,control_group_pct:e.getOptions().abTesting.controlGroupPct}),0<e.getInvalidSegments()&&(h._invalid_segments=e.getInvalidSegments()),Object(a.q)("Fetching ID5 user ID from:",p,h),i&&Object(a.q)("...with Force Fetch"),Object(a.a)(p,{success:function(t){if(Object(a.q)("Response from ID5 received:",t),t)try{var n,r,i=JSON.parse(t);Object(a.q)("Valid json response from ID5 received:",i),Object(a.o)(i.universal_uid)?(e.setUserId(i,!1),e.consentManagement.setStoredPrivacy(i.privacy),!0!==e.localStorageAllowed()&&Object(a.j)(i.privacy)?e.clientStore.clearAll(o.partnerId):(e.clientStore.putResponse(t),e.clientStore.setDateTime((new Date).toUTCString()),e.clientStore.setNb(o.partnerId,d?0:1)),e.clientStore.removeLegacyCookies(o.partnerId),!0===i.cascade_needed&&!0===e.localStorageAllowed()&&0<=o.maxCascades&&!o.applyCreativeRestrictions&&(n=o.partnerUserId&&0<o.partnerUserId.length,r="https://id5-sync.com/".concat(n?"s":"i","/").concat(o.partnerId,"/").concat(o.maxCascades,".gif?id5id=").concat(e._userId,"&o=api&").concat(n?"puid="+o.partnerUserId+"&":"","gdpr_consent=").concat(g,"&gdpr=").concat(f),Object(a.q)("Opportunities to cascade available:",r),Object(a.d)(r))):Object(a.p)("Invalid response from ID5 servers:",t)}catch(t){Object(a.p)(t)}else Object(a.p)("Empty response from ID5 servers:",t)},error:function(e){Object(a.p)(e)}},JSON.stringify(h),{method:"POST",withCredentials:!0}))):Object(a.q)("No legal basis to use ID5",n)}))}}])&&f(t.prototype,n),e}()),t.a=n},function(e,t,n){"use strict";function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,a=arguments[t];for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return i}));var r,i=(r=window,function(){try{var e,t=o(),n=t.length-1,a=null!==t[n].location||0<n&&null!==t[n-1].referrer,r=function(e){for(var t,n=[],a=null,r=null,i=null,o=null,s=e.length-1;0<=s;s--){try{a=e[s].location}catch(e){}if(a)n.push(a),o=o||a;else if(0!==s){t=e[s-1];try{r=t.referrer,i=t.ancestor}catch(e){}r?(n.push(r),o=o||r):i?(n.push(i),o=o||i):n.push(null)}else n.push(null)}return{stack:n,detectedRefererUrl:o}}(t);return t[t.length-1].canonicalUrl&&(e=t[t.length-1].canonicalUrl),{referer:r.detectedRefererUrl,reachedTop:a,numIframes:n,stack:r.stack,canonicalUrl:e}}catch(e){}});function o(){var e=function(){var e,t=[];do{try{e=e?e.parent:r;try{var n=e===r.top,i={referrer:e.document.referrer||null,location:e.location.href||null,isTop:n};n&&(i=a(i,{canonicalUrl:function(e){try{var t=e.querySelector("link[rel='canonical']");if(null!==t)return t.href}catch(e){}return null}(e.document)})),t.push(i)}catch(n){t.push({referrer:null,location:null,isTop:e===r.top})}}catch(n){return t.push({referrer:null,location:null,isTop:!1}),t}}while(e!==r.top);return t}(),t=function(){try{return r.location.ancestorOrigins?r.location.ancestorOrigins:void 0}catch(e){}}();if(t)for(var n=0,i=t.length;n<i;n++)e[n].ancestor=t[n];return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));t=n(1);var a=n.n(t),r=n(0);function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(5),n(2),n(3);var s=function(){function e(t,n,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,"_availableCallbackTimerId",void 0),o(this,"_availableCallbackFired",!1),o(this,"_availableCallback",void 0),o(this,"_updateCallback",void 0),o(this,"_refreshCallbackTimerId",void 0),o(this,"_refreshCallbackFired",!1),o(this,"_refreshCallback",void 0),o(this,"_isExposed",void 0),o(this,"_fromCache",void 0),o(this,"_isRefreshing",!1),o(this,"_isRefreshingWithFetch",!1),o(this,"_userId",void 0),o(this,"_linkType",void 0),o(this,"_userIdAvailable",!1),o(this,"config",void 0),o(this,"clientStore",void 0),o(this,"consentManagement",void 0),this.config=t,this.clientStore=n,this.consentManagement=a}var t,n,s;return t=e,s=[{key:"doFireOnAvailableCallBack",value:function(e){r.q("Id5Status.doFireOnAvailableCallBack"),e._availableCallbackFired=!0,e._availableCallbackTimerId=void 0,e._availableCallback(e)}},{key:"doFireOnUpdateCallBack",value:function(e){r.q("Id5Status.doFireOnUpdateCallBack"),e._updateCallback(e)}},{key:"doFireOnRefreshCallBack",value:function(e){r.q("Id5Status.doFireOnRefreshCallBack"),e._refreshCallbackFired=!0,e._refreshCallbackTimerId=void 0,e._isRefreshing=!1,e._isRefreshingWithFetch=!1,e._refreshCallback(e)}}],(n=[{key:"getOptions",value:function(){return this.config.getOptions()}},{key:"getInvalidSegments",value:function(){return this.config.getInvalidSegments()}},{key:"updateOptions",value:function(e){return this.config.updOptions(e)}},{key:"startRefresh",value:function(e){this._isRefreshing=!0,this._isRefreshingWithFetch=e}},{key:"setUserId",value:function(t,n){var a=this,i=t.universal_uid,o=t.link_type||0;if(this._isExposed=!0,r.n(t.ab_testing))switch(t.ab_testing.result){case"normal":break;default:r.p("There was an error with A/B Testing. Make sure controlGroupRatio is a number >= 0 and <= 1");break;case"control":this._isExposed=!1,r.q("User is in control group!")}t=this._userId!==i||this._linkType!==o,this._userIdAvailable=!0,this._userId=i,this._linkType=o,this._fromCache=n,r.q("Id5Status.setUserId: user id updated, hasChanged: ".concat(t)),r.k(this._availableCallback)&&!1===this._availableCallbackFired&&(this._availableCallbackTimerId&&(r.q("Cancelling pending onAvailableCallback watchdog"),clearTimeout(this._availableCallbackTimerId),this._availableCallbackTimerId=void 0),this._availableCallbackTimerId=setTimeout((function(){return e.doFireOnAvailableCallBack(a)}),0)),this._isRefreshing&&r.k(this._refreshCallback)&&!1===this._refreshCallbackFired&&(!1!==n&&!1!==this._isRefreshingWithFetch||(this._refreshCallbackTimerId&&(r.q("Cancelling pending onRefreshCallback watchdog"),clearTimeout(this._refreshCallbackTimerId),this._refreshCallbackTimerId=void 0),this._refreshCallbackTimerId=setTimeout((function(){return e.doFireOnRefreshCallBack(a)}),0))),t&&r.k(this._updateCallback)&&setTimeout((function(){return e.doFireOnUpdateCallBack(a)}),0)}},{key:"getUserId",value:function(){return!1===this._isExposed?"0":this._userId}},{key:"getLinkType",value:function(){return!1===this._isExposed?0:this._linkType}},{key:"isFromCache",value:function(){return this._fromCache}},{key:"exposeUserId",value:function(){return this._isExposed}},{key:"getUserIdAsEid",value:function(){return{source:a.a.ID5_EIDS_SOURCE,uids:[{id:this.getUserId(),ext:{linkType:this.getLinkType(),abTestingControlGroup:!this.exposeUserId()}}]}}},{key:"onAvailable",value:function(t,n){if(!r.k(t))throw new Error("onAvailable expect a function");var a;return r.k(this._availableCallback)?r.q("onAvailable was already called, ignoring"):(this._availableCallback=t,(a=this)._userIdAvailable?(r.q("Id5Status.onAvailable: User id already available firing callback immediately"),this._availableCallbackTimerId=setTimeout((function(){return e.doFireOnAvailableCallBack(a)}),0)):0<n&&(this._availableCallbackTimerId=setTimeout((function(){return e.doFireOnAvailableCallBack(a)}),n))),this}},{key:"onUpdate",value:function(t){if(!r.k(t))throw new Error("onUpdate expect a function");this._updateCallback=t;var n=this;return this._userIdAvailable&&setTimeout((function(){return e.doFireOnUpdateCallBack(n)}),0),this}},{key:"onRefresh",value:function(t,n){if(!r.k(t))throw new Error("onRefresh expect a function");this._refreshCallbackTimerId&&(clearTimeout(this._refreshCallbackTimerId),this._refreshCallbackTimerId=void 0),this._refreshCallback=t;var a=this;return!0===this._isRefreshing&&!1===this._isRefreshingWithFetch&&this._userIdAvailable?this._refreshCallbackTimerId=setTimeout((function(){return e.doFireOnRefreshCallBack(a)}),0):0<n&&(this._refreshCallbackTimerId=setTimeout((function(){return e.doFireOnRefreshCallBack(a)}),n)),this}},{key:"localStorageAllowed",value:function(){return this.clientStore.localStorageAllowed()}}])&&i(t.prototype,n),s&&i(t,s),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a="1.0.12"}]),function(){Date.now||(Date.now=function(){return(new Date).getTime()}),sas.utils.extend=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n&&"object"==typeof n)for(var a in n)void 0!==n[a]&&(Array.isArray(n[a])?e[a]=n[a]:"object"==typeof n[a]?e[a]=sas.utils.extend({},e[a],n[a]):e[a]=n[a])}return e},sas.utils.Latch=function(e){for(var t=[],n={},a=e=e||[],r=!1,i=0;i<a.length;i++)n[e[i]]={};var o=function(){if(!r){for(var e in n)if(!n[e].status)return;r=!0;for(var a=s(),i=0;i<t.length;i++)t[i].apply(this,a)}},s=function(){for(var e=[],t=0;t<a.length;t++)e.push(n[a[t]].result);return e};this.isComplete=function(){return r},this.notify=function(e,t){n[e]&&(n[e].status=!0,n[e].result=t,o())},this.addListener=function(e){null!=e&&(r?e():t.push(e))},o()},sas.utils.getIEVersion=function(){var e=navigator.userAgent.match(/(?:MSIE |Trident\/.*; rv:)(\d+)/);return e?parseInt(e[1]):void 0},sas.utils.parseCookies=function(e){for(var t={},n=e.split("; "),a=0;a<n.length;a++){var r=n[a],i=r.indexOf("="),o=r.substring(0,i),s=r.substring(i+1);t[o]=s}return t},sas.utils.setCookie=function(e,t,n,a){var r=new Date;r.setTime(r.getTime()+24*a*60*60*1e3);var i="expires="+r.toUTCString();e.cookie=t+"="+n+";"+i+";path=/"};var e=null;sas.utils.checkIfLocalStorageAvailable=function(){if(null==e)try{"undefined"!=typeof localStorage?(localStorage.setItem("smartadserver_feature_test","1"),"1"===localStorage.getItem("smartadserver_feature_test")?(localStorage.removeItem("smartadserver_feature_test"),e=!0):e=!1):e=!1}catch(t){e=!1}return e},sas.utils.getLocalStorageItemSafely=function(e){return sas.utils.checkIfLocalStorageAvailable()?window.localStorage.getItem(e):null},sas.utils.setLocalStorageItemSafely=function(e,t){return!!sas.utils.checkIfLocalStorageAvailable()&&(window.localStorage.setItem(e,t),!0)},sas.utils.isAddtlConsentBlocked=function(){return void 0!==window.sas_blockAddtlConsent&&!!window.sas_blockAddtlConsent},sas.events.addEvent=function(e,t,n){if(e&&t&&n)return e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener&&e.addEventListener(t,n,!1),{removeEvent:function(){e.detachEvent?e.detachEvent("on"+t,n):e.removeEventListener&&e.removeEventListener(t,n,!1)}}},sas.events.addLoadEvent=function(e,t){if(e&&t){var n="load",a=function(){return!0};(sas.utils.getIEVersion()<11||e==document)&&(n="readystatechange",a=function(){if(!e.readyState||"complete"==e.readyState||"loaded"==e.readyState)return!0});var r=sas.events.addEvent(e,n,(function(){a()&&(r.removeEvent(),t.apply(this,arguments))}))}},sas.events.addMessageEvent=function(e,t){if(e&&t)sas.events.addEvent(e,"message",(function(){t.apply(this,arguments)}))},sas.events._events=sas.events._events||{},sas.events._history=sas.events._history||[],sas.events.on=function(e,t,n){sas.events._events[e]=sas.events._events[e]||{que:[]};var a=sas.events._events[e];n&&(a=a[n]=a[n]||{que:[]}),a.que.push(t)},sas.events.fire=function(e,t,n){sas.events._history.push({eventName:e,data:sas.utils.extend({timestamp:Date.now()},t),id:n});var a=sas.events._events[e];if(a){if(n&&a[n])for(var r=0;r<a[n].que.length;r++)a[n].que[r](sas.utils.extend({},t),n);for(r=0;r<a.que.length;r++)a.que[r](sas.utils.extend({},t),n)}},sas.events.off=function(e,t,n){var a=sas.events._events[e];if(a){var r=a.que;if(n&&(r=a[n].que),r){var i=r.indexOf(t);i>=0&&r.splice(i,1)}}},sas.events.history=function(e){for(var t=[],n=0;n<sas.events._history.length;n++){var a=sas.events._history[n];e&&a.eventName!=e||t.push(sas.utils.extend({},a))}return t}}(),function(){"use strict";var e={774:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.DataDogDefaultClientToken="pub4dc0b42521d789dc92f11b797f836ecf",t.DataDogUrlDomain="https://browser-http-intake.logs.datadoghq.eu/v1/input/",t.DataDogUrlParams="?ddsource=smartWebLogger&ddtags=version:0.0.1-9110cbe5d7073cc35538d4f4cd5a191e3869117f",t.DebugLogLevel="debug",t.ErrorLogLevel="error",t.InfoLogLevel="info",t.WarningLogLevel="warning"},554:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var a=n(774);t.DefaultConfiguration={clientToken:a.DataDogDefaultClientToken,source:"video",tags:"video",service:"video",host:"FRONT-DDLOG-HOST",endpoint:"videoPlugin",minLogLevel:"error",version:"0.0.1",samplingRate:{debug:1e4,info:1e3,warning:100,error:100}}},85:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var a=n(774),r=function(){function e(e){this.url=a.DataDogUrlDomain+e+a.DataDogUrlParams}return e.prototype.log=function(e){var t={headers:{"content-type":"text/plain;charset=UTF-8"},body:JSON.stringify(e),method:"POST"};fetch(this.url,t).then((function(e){e.ok&&console.log("WebTechnicalLogger data were logged successfully")})).catch((function(e){return console.log("WebTechnicalLogger Fetch error ",e)}))},e}();t.DataDogLogger=r},464:function(e,t,n){var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var r=n(348),i=n(554),o=n(85),s=n(774),c=function(){function e(e){void 0===e&&(e=null),this.configuration=this.prepareConfiguration(i.DefaultConfiguration,e),this.loggerManager=new r.LoggerManager(this.configuration.samplingRate),this.dataDogLogger=new o.DataDogLogger(this.configuration.clientToken)}return e.prototype.log=function(e,t,n){var a=this.loggerManager.getLog(e,n);a&&this.dataDogLogger.log({log:a,endpoint:this.configuration.endpoint,samplingRate:this.configuration.samplingRate[e],type:t,severity:e,service:this.configuration.service,source:this.configuration.source,host:this.configuration.host,version:this.configuration.version})},e.prototype.updateConfiguration=function(e){e?(this.configuration=this.prepareConfiguration(this.configuration,e),this.loggerManager.updateSamplingRate(this.configuration.samplingRate)):console.warn("Web Technical Logger new configuration is not updated")},e.prototype.prepareConfiguration=function(e,t){var n,a=[s.ErrorLogLevel,s.InfoLogLevel,s.DebugLogLevel,s.WarningLogLevel];return n=this.mergeConfiguration(e,t),a.indexOf(n.minLogLevel)<0&&(n.minLogLevel=s.ErrorLogLevel),n},e.prototype.mergeConfiguration=function(e,t){var n=this;return null===t?e:a(a({},e),Object.keys(e).reduce((function(a,r){return null!==t[r]&&void 0!==t[r]&&(t[r]instanceof Object?a[r]=n.mergeConfiguration(e[r],t[r]):a[r]=t[r]),a}),{}))},e}();t.WebTechnicalLogger=c},348:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var a=n(774),r=n(420),i=n(882),o=n(333),s=n(570),c=n(82),l=function(){function e(e){this.updateSamplingRate(e)}return e.prototype.getLog=function(e,t){var n=!1;switch(e){case a.DebugLogLevel:null!==this.getErrorExcludedLog(t)&&this.toLog(this.sampling.debug)?n=this.getErrorExcludedLog(t):console.warn("Web Technical Logger, debugLog: the log cannot be logged because of sampling");break;case a.ErrorLogLevel:null!==this.getErrorLog(t)&&this.toLog(this.sampling.error)?n=this.getErrorLog(t):console.warn("Web Technical Logger, errorLog: the log cannot be logged because of sampling");break;case a.InfoLogLevel:null!==this.getErrorExcludedLog(t)&&this.toLog(this.sampling.info)&&(n=this.getErrorExcludedLog(t));break;case a.WarningLogLevel:null!==this.getErrorExcludedLog(t)&&this.toLog(this.sampling.warning)?n=this.getErrorExcludedLog(t):console.warn("Web Technical Logger, warningLog: the log cannot be logged because of sampling");break;default:console.error("Web Technical Logger: we do not suport log level:",e)}return n},e.prototype.updateSamplingRate=function(e){this.sampling=e},e.prototype.toLog=function(e){return!((Math.floor(Math.random()*e)+1)%e)},e.prototype.getErrorLog=function(e){var t=(new r.ErrorNode).getNodeResponse(e.error),n=(new i.SmartNode).getNodeResponse(e.smart),a=null;return null!==t&&null!==n?a={error:t,smart:n}:console.error("Web Technical Logger: error node is not defined"),a},e.prototype.getErrorExcludedLog=function(e){var t={},n=(new o.MediaNode).getNodeResponse(e.media),a=(new i.SmartNode).getNodeResponse(e.smart),r=(new s.ViewabilityNode).getNodeResponse(e.viewability),l=(new c.BiddingNode).getNodeResponse(e.bidding);return null===n&&null===a&&null===r&&null===l?t=null:(t.media=n,t.smart=a,t.viewability=r,t.bidding=l),t},e}();t.LoggerManager=l},82:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.amount=null,this.currency=null}return e.prototype.getNodeResponse=function(e){return null==e?null:{amount:e.amount?e.amount:this.amount,currency:e.currency?e.currency:this.currency}},e}();t.BiddingNode=n},420:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.adResponse=null,this.errorCode=null,this.errorDetailed=null,this.message=null}return e.prototype.getNodeResponse=function(e){var t=null;return null==e||(void 0===e.errorCode||null===e.errorCode?console.error("Web Technical Logger ErrorNode preparation: errorCode must be defined"):t={adResponse:e.adResponse?JSON.stringify(e.adResponse):this.adResponse,errorCode:e.errorCode,errorDetailed:e.errorDetailed?e.errorDetailed:this.errorDetailed,message:e.message?e.message:this.message}),t},e}();t.ErrorNode=n},333:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.type=1,this.container=1,this.url=null,this.bitrate=-1,this.width=-1,this.height=-1,this.duration=-1}return e.prototype.getNodeResponse=function(e){return null==e?null:{type:void 0!==e.type?e.type:this.type,container:e.container?e.container:this.container,url:e.url?e.url:this.url,bitrate:e.bitrate?e.bitrate:this.bitrate,width:e.width?e.width:this.width,height:e.height?e.height:this.height,duration:e.duration?e.duration:this.duration}},e}();t.MediaNode=n},882:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.siteId=null,this.pageId=null,this.pageName=null,this.formatId=null,this.target=null,this.expectedFormatType=-1,this.channelType=-1,this.templateFormatType=-1,this.insertionId=null,this.rtb=null}return e.prototype.getNodeResponse=function(e){var t=null;return null==e||(e.formatId&&(e.pageId||e.pageName)?t={siteId:e.siteId,pageId:e.pageId?e.pageId:this.siteId,pageName:e.pageName?e.pageName:this.pageName,formatId:e.formatId,target:e.target?e.target:this.target,expectedFormatType:e.expectedFormatType?e.expectedFormatType:this.expectedFormatType,channelType:e.channelType?e.channelType:this.channelType,templateFormatType:e.templateFormatType?e.templateFormatType:this.templateFormatType,insertionId:e.insertionId?e.insertionId:this.insertionId,rtb:e.rtb?JSON.stringify(e.rtb):this.rtb}:console.error("Web Technical Logger SmartNode preparation: formatId and pageId or pageName must be defined")),t},e}();t.SmartNode=n},570:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.type=null,this.percentage=-1}return e.prototype.getNodeResponse=function(e){return null==e?null:{type:e.type?e.type:this.type,percentage:e.percentage?e.percentage:this.percentage}},e}();t.ViewabilityNode=n},629:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Global=void 0;var n=function(){function e(){this.sas=window.sas=window.sas||{},this.sas.cmd=window.sas.cmd=window.sas.cmd||[],this.isDebug=this._isDebug(),this.ieFixes()}return e.prototype.ieFixes=function(){Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,a=new Array(n);n--;)a[n]=[t[n],e[t[n]]];return a})},e.prototype.setEids=function(e){var t=this;"function"==typeof this.sas.setEids?this.sas.setEids([e]):this.sas.cmd.unshift((function(){return t.sas.setEids([e])}))},e.prototype._log=function(e,t){var n="background:#ffd500; border-radius:2px; color:#feffff; font-family:lato,sans-serif; padding:1px 3px;";"warning"===t?console.warn("%csmart",n,e):this.isDebug&&console.log("%csmart",n,e)},e.prototype._isDebug=function(){return"true"===("function"==typeof window.URLSearchParams?new URLSearchParams(window.location.search).get("sas_debug"):null)},e}();t.Global=n},791:function(e,t,n){var a,r=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Id5=void 0;var i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.partnerId=102,t}return r(t,e),t.prototype.init=function(e){var t={partnerId:this.partnerId};(null==e?void 0:e.pd)&&(t.pd=e.pd);var n=window.ID5.init(t);(null==n?void 0:n.getUserId())&&this.setEids(n.getUserIdAsEid())},t}(n(629).Global);t.Id5=i},129:function(e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SasIabApi=void 0;var a=function(){function e(e,t){this.apiWasFound=!1,this.apiAnsweredOk=!1,this.eventMessageListenerAdded=!1,this.hasAddtlConsent=!1,this.apiCallbacks={},this._gdprApplies=void 0,this.myCmpCallbackFinished=void 0,this.maxSearchRetry=50,this.doubleCallbackTime=10,this.name=e.name,this.sasCookieName=e.sasCookieName,this.sasAddtlCookieName=e.sasAddtlCookieName,this.version=e.version,this.getConsentFunction=e.getConsentFunction,this.apiFunctionName=e.apiFunctionName,this.consentObjectConsentDataName=e.consentObjectConsentDataName,this.consentObjectAdditionalConsentDataName=e.consentObjectAdditionalConsentDataName,this.apiLocator=e.apiLocator,this.sentMessage=e.sentMessage,this.postMessageReturnObjectName=e.postMessageReturnObjectName,t&&(this.myCmpCallbackFinished=function(){return t()}),this.lastCallbackResult={id:"",addtlConsent:"",eventStatus:"",gdprApplies:void 0,timeStamp:0,vendor:{consents:{},legitimateInterests:{}}}}return Object.defineProperty(e.prototype,"gdprApplies",{get:function(){return this._gdprApplies},enumerable:!1,configurable:!0}),e.prototype.cmpCallback=function(e,t){if(t&&e&&void 0!==e[this.consentObjectConsentDataName]&&null!==e[this.consentObjectConsentDataName]){this.apiAnsweredOk=!0,this._gdprApplies=e.gdprApplies,this.consentObjectAdditionalConsentDataName&&e[this.consentObjectAdditionalConsentDataName]&&(this.hasAddtlConsent=!0);var n={consentObject:e,name:this.consentObjectConsentDataName};this.hasAddtlConsent&&(n.additionalConsent=this.consentObjectAdditionalConsentDataName),window.sas.events.fire("ApiAnswered Valid answer",n,this.name),window.sas.utils.setLocalStorageItemSafely(this.sasCookieName,e[this.consentObjectConsentDataName]),this.hasAddtlConsent&&window.sas.utils.setLocalStorageItemSafely(this.sasAddtlCookieName,e[this.consentObjectAdditionalConsentDataName]),this.myCmpCallbackFinished&&this.myCmpCallbackFinished()}else window.sas.events.fire("ApiAnswered Wrong answer",{consent:e,success:t,failType:"Wrong answer",version:this.version},this.name)},e.prototype.callApiLocal=function(){var e=this,t=window[this.apiFunctionName];return void 0!==t&&"[object Function]"===Object.prototype.toString.call(t)&&(this.apiWasFound=!0,window.sas.events.fire("ApiCalled",{location:"Same Iframe",version:this.version},this.name),t(this.getConsentFunction,this.version,(function(t,n){e.cmpCallback(t,n)})),!0)},e.prototype.callApiInFrame=function(){for(var e,t,n,a,r,i,o=this,s=window;!e;){try{s.frames[this.apiLocator]&&(e=s)}catch(e){}if(s===window.top)break;s=s.parent}if(e){this.apiWasFound=!0,window.sas.events.fire("ApiFrameFound",{version:this.version},this.name);return this.eventMessageListenerAdded||(window.sas.events.addEvent(window,"message",(function(e){o.readPostMessageResponse(e)})),this.eventMessageListenerAdded=!0),window.sas.events.fire("ApiCalled",{location:"Different iframe",version:this.version},this.name),t=this.getConsentFunction,n=void 0,a=function(e,t){o.cmpCallback(e,t)},r="smartjs"+Math.random(),(i={})[o.sentMessage]={command:t,parameter:n,callId:r,version:o.version},o.apiCallbacks[r]=a,null==e||e.postMessage(i,"*"),!0}return!1},e.prototype.readPostMessageResponse=function(e){var t="string"==typeof e.data&&-1!==e.data.indexOf(this.postMessageReturnObjectName)?JSON.parse(e.data):e.data;if(t[this.postMessageReturnObjectName]){var n=t[this.postMessageReturnObjectName];"function"!=typeof this.apiCallbacks[n.callId]||this.isCallbackDouble(n.callId,e)||(this.assignLastCallback(n.callId,e),this.apiCallbacks[n.callId](n.returnValue,n.success,this.version))}},e.prototype.isCallbackDouble=function(e,t){var n,a,r,i=!1,o=null===(a=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.__tcfapiReturn)||void 0===a?void 0:a.returnValue;return e===this.lastCallbackResult.id&&(null==t?void 0:t.timeStamp)-this.lastCallbackResult.timeStamp<this.doubleCallbackTime&&this.lastCallbackResult.addtlConsent===(null==o?void 0:o.addtlConsent)&&this.lastCallbackResult.eventStatus===(null==o?void 0:o.eventStatus)&&this.lastCallbackResult.gdprApplies===(null==o?void 0:o.gdprApplies)&&JSON.stringify(this.lastCallbackResult.vendor.consents)===JSON.stringify(null===(r=null==o?void 0:o.vendor)||void 0===r?void 0:r.consents)&&(i=!0),i},e.prototype.assignLastCallback=function(e,t){var a,r,i=null===(r=null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.__tcfapiReturn)||void 0===r?void 0:r.returnValue;this.lastCallbackResult.id=e,this.lastCallbackResult.addtlConsent=null==i?void 0:i.addtlConsent,this.lastCallbackResult.eventStatus=null==i?void 0:i.eventStatus,this.lastCallbackResult.gdprApplies=null==i?void 0:i.gdprApplies,this.lastCallbackResult.timeStamp=null==t?void 0:t.timeStamp,(null==i?void 0:i.vendor)&&(this.lastCallbackResult.vendor=n({},null==i?void 0:i.vendor))},e.prototype.tryCallApi=function(e){this.callApiLocal()||(e%10==0&&window.sas.events.fire("ApiNotFoundInFrame",{retryNumber:e},this.name),this.callApiInFrame())},e.prototype.searchApi=function(){var e=this,t=0,n="intervalCounterNumber"+this.name,a=window[n]=window.setInterval((function(){e.apiWasFound&&e.apiAnsweredOk||(t%10==0&&window.sas.events.fire("ApiSearch",{retryNumber:t},e.name),e.tryCallApi(t)),(t>e.maxSearchRetry||e.apiWasFound&&e.apiAnsweredOk)&&clearInterval(a),t++}),500)},e}();t.SasIabApi=a,window.SasIabApi=a},94:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ConsentEnum=t.Consent=void 0;var n,a=function(){function e(){this.isConsentHolder=n.UNKNOWN,this.consentTgtString="consent=rejected"}return e.prototype.checkConsent=function(e){var t=this;"function"==typeof window.__tcfapi?window.__tcfapi("getTCData",2,(function(a,r){var i,o=!0===(null===(i=null==a?void 0:a.vendor)||void 0===i?void 0:i.consents[45])&&[1,2,4,7,10].every((function(e){var t;return!0===(null===(t=null==a?void 0:a.purpose)||void 0===t?void 0:t.consents[e])}));!r||!0!==a.gdprApplies&&void 0!==a.gdprApplies||o||(t.isConsentHolder=n.REJECTED),t.callCallback(t.isConsentHolder===n.REJECTED,e)})):this.callCallback(!1,e)},e.prototype.callCallback=function(e,t){"function"==typeof t&&t(e?this.consentTgtString:null)},e}();t.Consent=a,function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.REJECTED=1]="REJECTED"}(n=t.ConsentEnum||(t.ConsentEnum={}))},703:function(e,t,n){var a,r=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Liveramp=void 0;var i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.atsPath="https://ats.rlcdn.com/ats.js",t.storageKey="sas__lr_env",t}return r(t,e),t.prototype.init=function(e){"number"==typeof e.placementID&&e.placementID?this.fetchId(e):this._log("LiveRamp ATS not initiated because of not valid placementID","warning"),this.readId()},t.prototype.fetchId=function(e){var t=this;(window.ats?Promise.resolve():new Promise((function(e){var n=document.createElement("script");n.onload=e,n.src=t.atsPath,document.head.appendChild(n)}))).then((function(){window.ats.start(e),t._log("LiveRamp ATS initiated"),window.ats.retrieveEnvelope().then((function(e){e&&window.localStorage.setItem(t.storageKey,JSON.parse(e).envelope)}))}))},t.prototype.readId=function(){var e=window.localStorage.getItem(this.storageKey);e&&this.setEids({source:"liveramp.com",uids:[{id:e}]})},t}(n(629).Global);t.Liveramp=i},499:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SwlTypes=t.SwlDefaultConfiguration=t.SasWebLogger=void 0;var a=n(464),r=function(e){var n=this;this.log=function(e,a,r){var o=r.smart;t.SwlTypes.indexOf(e)<0&&(e="info"),i.indexOf(a)<0&&(a=""),("number"==typeof o.pageId||"string"==typeof o.pageName&&""!==o.pageName)&&n.logger.log(e,a,r)},this.logger=new a.WebTechnicalLogger(e)};t.SasWebLogger=r;var i=["ad_response","error_response","noad_response","timeout_response"];t.SwlDefaultConfiguration={clientToken:"pubbcfecde340a05af2aa9cad46f8c050f2",source:"smartjs",tags:"smartjs",service:"smartjs",host:"FRONT-DDLOG-HOST",endpoint:"smartjs",minLogLevel:"error",version:"1.8.0",samplingRate:{debug:1e5,info:1e4,warning:1e3,error:100}},t.SwlTypes=["debug","error","info","warning"]},494:function(e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)},a=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.SetTargetingMode=t.Targeting=void 0;var r,i=function(){function e(){this.targetingData=[],this.deleteTargetingKey=[],window.sas.setTargeting=this.setTargeting.bind(this),window.sas.overwriteTarget=this.overwriteTarget.bind(this),window.sas.updateTarget=this.updateTarget.bind(this)}return e.prototype.setTargeting=function(e){this.targetingData.push(e)},e.prototype.overwriteTarget=function(e,t){this.targetingData.unshift({mode:r.Overwrite,target:this.tgtStringToObj(e),tagIds:[t]})},e.prototype.updateTarget=function(e,t){if(void 0===t&&(t=""),this.deleteTargetingKey.length&&e&&(e=this.deleteKeysFromTargetString(e)),0===this.targetingData.length)return e;for(var i=this.tgtStringToObj(e),o=function(e){if(!e.tagIds||!e.tagIds.length||e.tagIds.indexOf(t)>-1)switch(e.mode){case r.Overwrite:i=n(n({},i),e.target);break;case r.Append:Array.from(new Set(a(a([],Object.keys(i)),Object.keys(e.target)))).forEach((function(t){var n=a(a([],i[t]||[]),e.target[t]||[]);i[t]=n.filter((function(e,t){return n.indexOf(e)===t}))}));break;default:i=n({},e.target)}},s=0,c=this.targetingData;s<c.length;s++){o(c[s])}var l=this.tgtObjToString(i);return""===l&&void 0===e?void 0:l},e.prototype.deleteKeysFromTargetString=function(e){return this.deleteTargetingKey.forEach((function(t){e=e.replace(new RegExp(t+"=?[a-z0-9,]*(;|$)","g"),"")})),e},e.prototype.tgtObjToString=function(e){for(var t="",n=0,a=Object.entries(e);n<a.length;n++){var r=a[n],i=r[0],o=r[1];t+=o.length?i+"="+o+";":i+";"}return t},e.prototype.tgtStringToObj=function(e){for(var t,a,r={},i=0,o=String(e).split(";");i<o.length;i++){var s=o[i].split("=");s[0]&&s[1]&&(r=r.hasOwnProperty(s[0])?n(n({},r),((t={})[s[0]]=r[s[0]].concat(s[1].split(",")),t)):n(n({},r),((a={})[s[0]]=s[1].split(","),a)))}return r},e}();t.Targeting=i,function(e){e[e.Default=0]="Default",e[e.Overwrite=1]="Overwrite",e[e.Append=2]="Append"}(r=t.SetTargetingMode||(t.SetTargetingMode={}))},76:function(e,t,n){var a,r=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Smart=void 0;var i=n(94),o=n(629),s=n(791),c=n(703),l=n(129),d=n(499),u=n(494),p=n(494),f=function(e){function t(){var t=e.call(this)||this;return t.targeting=new p.Targeting,t}return r(t,e),t.prototype.initCmp=function(){var e=new l.SasIabApi({name:"CMP V2",version:2,apiFunctionName:"__tcfapi",getConsentFunction:"addEventListener",sasCookieName:"sas_euconsent_v2",sasAddtlCookieName:"sas_addtl_euconsent_v2",consentObjectConsentDataName:"tcString",consentObjectAdditionalConsentDataName:"addtlConsent",apiLocator:"__tcfapiLocator",sentMessage:"__tcfapiCall",postMessageReturnObjectName:"__tcfapiReturn"}),t=new l.SasIabApi({name:"CCPA",version:1,apiFunctionName:"__uspapi",getConsentFunction:"getUSPData",sasCookieName:"sas_usprivacy",consentObjectConsentDataName:"uspString",apiLocator:"__uspapiLocator",sentMessage:"__uspapiCall",postMessageReturnObjectName:"__uspapiReturn"});e.searchApi(),t.searchApi()},t.prototype.initLogger=function(){var e=d.SwlDefaultConfiguration;void 0!==window.sas_ddMinLogLevel&&d.SwlTypes.indexOf(window.sas_ddMinLogLevel)>-1&&(e.minLogLevel=window.sas_ddMinLogLevel),e.host=window.location.host,window.sas.sasWebLogger=new d.SasWebLogger(e)},t.prototype.initModules=function(e){var t,n=this;!1!==(null===(t=null==e?void 0:e.consent)||void 0===t?void 0:t.targeting)&&(new i.Consent).checkConsent((function(e){e?n.targeting.setTargeting({mode:u.SetTargetingMode.Overwrite,target:{consent:["rejected"]}}):n.targeting.deleteTargetingKey.push("consent")})),void 0!==window.sas_useID5Module&&!0===window.sas_useID5Module&&(new s.Id5).init(null==e?void 0:e.id5),void 0!==window.sas_useLiverampModule&&!0===window.sas_useLiverampModule&&e&&e.liveramp&&"undefined"!=typeof Promise&&(new c.Liveramp).init(e.liveramp)},t.prototype.init=function(){var e,t,n=this;null===(t=null===(e=null===window||void 0===window?void 0:window.sas)||void 0===e?void 0:e.events)||void 0===t||t.on("setupCalled",(function(e){return n.initModules(null==e?void 0:e.modules)}),"setupCalledId"),this.initCmp(),this.initLogger()},t}(o.Global);t.Smart=f,(new f).init()}},t={};(function n(a){var r=t[a];if(void 0!==r)return r.exports;var i=t[a]={exports:{}};return e[a].call(i.exports,i,i.exports,n),i.exports})(76)}(),function(e,t){if(!sas.__smartLoaded){sas.__smartLoaded=!0;var n=function(e){var t=this;t.instances=[],sas.events.on("ad",(function(){t._onAd.apply(t,arguments)}),e),sas.events.on("load",(function(){t._onLoad.apply(t,arguments)}),e),sas.events.on("noad",(function(){t._onNoad.apply(t,arguments)}),e),sas.events.on("error",(function(){t._onError.apply(t,arguments)}),e),sas.events.on("beforeRender",(function(){t._beforeRender.apply(t,arguments)}),e),sas.events.on("beforeFetch",(function(){t._beforeFetch.apply(t,arguments)}),e),sas.events.on("hbRender",(function(){t._hbRender.apply(t,arguments)}),e)};n.prototype.onCall=function(e,t,n){this.callType=e,this.ad=t,this.options=n},n.prototype.reset=function(e,t){if(this.displayData=null,this.hbRenderUrls=null,e?this.renderStatus=null:"rendered"==this.renderStatus&&(this.renderStatus="pending"),sas.events.fire("reset",{formatId:this.ad.formatId,instance:this.ad.instance,tagId:this.ad.tagId,hardReset:e},this.ad.tagId),t)for(var n=0;n<this.instances.length;n++)this.instances[n].reset(e)},n.prototype.setHeaderBiddingWinner=function(e){this.headerBidding=e},n.prototype._onLoad=function(){var n=t.getElementById(this.ad.tagId);n&&(this.hasAd=this.hasAd||n.childNodes.length>1,e.sas_loadHandler&&e.sas_loadHandler({id:this.ad.formatId,hasAd:this.hasAd}),this.options&&this.options.onLoad&&this.options.onLoad({formatId:this.ad.formatId,tagId:this.ad.tagId,hasAd:this.hasAd}))},n.prototype._beforeRender=function(e){this.options&&this.options.beforeRender&&this.options.beforeRender(e)},n.prototype._beforeFetch=function(e){this.options&&this.options.beforeFetch&&this.options.beforeFetch(e)},n.prototype._onError=function(e){this.options&&this.options.onError&&this.options.onError(e)},n.prototype._onNoad=function(e){var t=this.ad,n={smart:{siteId:t.siteId,pageId:t.pageId,pageName:t.pageName,formatId:t.formatId,tagId:t.tagId,target:t.target}};this.callType==sas.callType.ONECALL&&t.isOnecallJSON?this.displayData.scriptNoad&&((new Image).src=this.displayData.scriptNoad):this.callType==sas.callType.ONECALL&&sas_manager&&sas_manager.noad(t.formatId),e.hbRenderUrls&&e.hbRenderUrls.hbRenderFailedUrl&&(this.hbRenderUrls=e.hbRenderUrls,e.hbRenderUrls=null),this.options&&this.options.onNoad&&this.options.onNoad(e),sas.sasWebLogger.log("info","noad_response",n)},n.prototype._onAd=function(e){var t=this.ad,n={smart:{siteId:t.siteId,pageId:t.pageId,pageName:t.pageName,formatId:t.formatId,tagId:t.tagId,target:t.target}};this.hasAd=!0,this.options&&this.options.onAd&&this.options.onAd(e),sas.sasWebLogger.log("info","ad_response",n)},n.prototype.clean=function(){var e=t.getElementById(this.ad.tagId);this.options&&this.options.onClean&&this.options.onClean(this.ad.formatId,e),sas.events.fire("clean",{formatId:this.ad.formatId,instance:this.ad.instance,tagId:this.ad.tagId},this.ad.tagId),e&&(e.innerHTML="")},n.prototype._hbRender=function(e){this.hbRenderUrls&&(e.success?(new Image).src=this.hbRenderUrls.hbRenderSuccessUrl:(new Image).src=this.hbRenderUrls.hbRenderFailedUrl,this.hbRenderUrls=null)},n.prototype.render=function(){var e=this;if("rendered"!=this.renderStatus)if(this.displayData){this.renderStatus="rendered",this.clean();var n={formatId:this.ad.formatId,instance:this.ad.instance,tagId:this.ad.tagId};this.displayData.hbRenderFailedUrl&&(n.hbRenderUrls={hbRenderFailedUrl:this.displayData.hbRenderFailedUrl,hbRenderSuccessUrl:this.displayData.hbRenderSuccessUrl}),sas.events.fire("beforeRender",n,e.ad.tagId);var a=function(){sas.events.fire("load",n,e.ad.tagId)},r=function(){sas.events.fire("error",n,e.ad.tagId),sas.events.fire("noad",n,e.ad.tagId)};if(!this.displayData.scriptType)return sas.events.fire("load",n,this.ad.tagId),void sas.events.fire("noad",n,this.ad.tagId);var i=t.getElementById(this.ad.tagId);if(i){switch(this.displayData.scriptType){case"iframe":M(i,this,this.options.async,a,r);break;case"script":var o=$(i.id);o&&(this.displayData.scriptNoad=Y(this.displayData.scriptNoad,o)),H(i,this.displayData.scriptSrc,this.options.async,a,r,o);break;case"passback":sas.passback({formatId:this.ad.formatId,tagId:this.ad.tagId,chain:this.displayData.chain});break;case"content":B(i,this),a();break;default:throw new Error("Unsupported script type "+this.displayData.scriptType)}sas.events.fire("render",n,this.ad.tagId)}else sas.events.fire("error",n,this.ad.tagId)}else this.renderStatus="pending"};var a=function(){},r=!1,i=function(){return Math.round(1e10*Math.random())},o="https://www.smartadserver.com",s=o,c=i(),l=!0,d=encodeURIComponent,u=decodeURIComponent,p=0,f=!1,h=0,g=!1,v=null,m=null,y=null,b={},I=[],w=[],_={},C={},O={},S=null;sas._networks=sas._networks||{},sas._pendingCommands=sas._pendingCommands||{};var k={};sas.callType={STD:"std",IFRAME:"iframe",ONECALL:"onecall",XML:"xml",PASSBACK:"passback"},sas.renderMode={DEFAULT:0,READY:1,ON_DEMAND:2};var D=!1,T=[],A={onLoad:a,onError:a,onClean:a,beforeRender:a};sas.events.on("call",(function(e){var t=b[e.ad.tagId],n=he[e.ad.tagId]?he[e.ad.tagId]:fe;de.mode&&de.modeReady&&(null===de.tagId&&de.formatId===e.ad.formatId||de.tagId==e.ad.tagId)?N(e.ad.formats):(se("Make a std call ",e),e.ad.usePostStandard?n.addListener((function(){E(e)})):t.displayData={scriptType:"script",scriptSrc:K(e.callType,e.ad,e.options)}),n.addListener((function(){t.render()}))}),sas.callType.STD),sas.events.on("call",(function(e){var t=b[e.ad.tagId];de.mode&&de.modeReady&&de.formatId===e.ad.formatId?N(e.ad.formats):(se("Make a iframe call ",e),t.displayData={scriptType:"iframe",scriptSrc:K(e.callType,e.ad,e.options),width:e.ad.width||0,height:e.ad.height||0}),fe.addListener((function(){t.render()}))}),sas.callType.IFRAME),sas.events.on("call",(function(e){if(de.mode&&de.modeReady&&e.hasOwnProperty("ad")&&e.ad.hasOwnProperty("formats")){for(var t=e.ad.formats,n=-1,a=0;a<t.length;a++)Number(t[a].id)===de.formatId&&(n=a);n>-1?(N(e.ad.formats),t.splice(n,1),e.ad.formats=t):se("Format id for preview doesn't exist in the onecall formats list")}se("Make a onecall for formats ",e),fe.addListener((function(){e.ad.isOnecallJSON?j(e):L(e)}))}),sas.callType.ONECALL);var L=function(e){var n=K(e.callType,e.ad,e.options)(),a=t.getElementsByTagName("head")[0],r=null;a&&a.id&&(r=$(a.id)),H(a,n,e.options.async,(function(){for(var t in sas_manager.formats){if(s=U(t.substring(1))){var n=sas_manager.formats[t];r&&(s.displayData.scriptNoad=Y(s.displayData.scriptNoad,r)),s.options.async||n.chain?s.displayData={scriptType:n.scriptType(),scriptSrc:n.scriptSrc(),chain:n.chain,width:"iframe"==n.scriptType()?n.scriptWidth():0,height:"iframe"==n.scriptType()?n.scriptHeight():0}:s.displayData=me(n.scriptURL()),s.displayData.scriptSrc&&(s.displayData.scriptSrc=function(e){return function(){return Te(e)}}(s.displayData.scriptSrc))}}var a={};for(var i in e.ad.formats)a[e.ad.formats[i].id]=!0;for(var o in b){var s;a[(s=b[o]).ad.formatId]&&(s.displayData=s.displayData||{},"pending"==s.renderStatus&&s.render())}}),e.options.onError,r)},j=function(e){fe.addListener((function(){var t=z(e.ad,e.options,e.callType);!function(e,t,n,a,r){Ie(e,t,n,a,r,JSON.parse,"application/json")}(J(e.ad,e.options,e.callType),t,(function(e){for(var t in e){var n=U(t);if(n){var a=e[t];n.displayData={hbRenderFailedUrl:a.HbRenderFailedUrl,hbRenderSuccessUrl:a.HbRenderSuccessUrl,scriptType:a.ScriptType,scriptSrc:a.ScriptSrc,scriptNoad:a.ScriptNoad,contentType:a.ContentType,content:a.Content,chain:a.Chain,width:a.ScriptWidth,height:a.ScriptHeight},n.displayData.scriptSrc&&(n.displayData.scriptSrc=function(e){return function(){return Te(e)}}(n.displayData.scriptSrc)),"pending"==n.renderStatus&&n.render()}}}),e.options.onError,e.options.domain)}))},E=function(e){fe.addListener((function(){var t=z(e.ad,e.options,e.callType);!function(e,t,n,a,r){Ie(e,t,n,a,r,(function(e){return e}),"application/javascript")}(J(e.ad,e.options,e.callType),t,(function(t){var n=e.ad.tagId,a=U(n);a&&(a.displayData={scriptType:"content",contentType:"application/javascript",content:t},"pending"==a.renderStatus&&(he[n]?he[n].addListener(function(){this.render()}.bind(a)):a.render()))}),e.options.onError,e.options.domain)}))},N=function(n){if(null==de.tagId&&n.length)for(var a=0;a<n.length;a++)if(Number(n[a].id)===de.formatId){de.tagId=n[a].tagId;break}se("Preview mode is active, make a preview call for formatId "+de.formatId+" / tagId "+de.tagId),se("Call preview ",de.url),e.sas_ajax=!0;var r=e.location.protocol+de.url+"insid="+de.insertionId+"&ruid="+de.ruid+"&tag="+de.tagId+"&timestamp="+Date.now(),i=t.createElement("script");i.id="sas_script"+W++,i.type="text/javascript",i.src=r,i.async=!0,t.getElementById(de.tagId)?t.getElementById(de.tagId).appendChild(i):t.getElementsByTagName("head")[0].appendChild(i)},R="invalid site id",x="invalid page id or name",P="invalid format id",F=function(e){throw new Error(e)};Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var U=function(e){var t=b[e=""+e]||b["sas_"+e];if(t)return t;var a=e.split("_"),r=a.slice(0,a.length-1).join("_");if(a.length>1&&!isNaN(a[a.length-1])&&(t=b[r]||b["sas_"+r])){var i=parseInt(a[a.length-1]),o=t.ad.tagId+"_"+i,s=new n(o);return s.onCall(t.callType,sas.utils.extend({},t.ad,{tagId:o,instance:i}),t.options),t.instances.push(s),b[o]=s,s}return null},M=function(e,n,a,r,i){var o=t.createElement("iframe");o.id="sas_i_"+n.ad.formatId+(n.ad.instance?"_"+n.ad.instance:""),o.scrolling="no",o.frameBorder=0,o.width=n.displayData.width,o.height=n.displayData.height,o.style.margin=0,o.style.padding=0,o.style.width=n.displayData.width+"px",o.style.height=n.displayData.height+"px";var s="function"==typeof n.displayData.scriptSrc?n.displayData.scriptSrc():n.displayData.scriptSrc,c=$(e.id);void 0!==c&&(s=Y(s,c),n.displayData.scriptNoad=Y(n.displayData.scriptNoad,c)),o.src=s,a?(sas.events.addLoadEvent(o,r),sas.events.addEvent(o,"error",i)):(o.setAttribute("onload",G(r)+"()"),o.setAttribute("onError",G(i)+"()")),n.options.async?e.appendChild(o):t.write(o.outerHTML)},W=1,q=function(e,n,a){var r=t.createElement("script");r.id="sas_script"+W++,r.type="text/javascript",r.text=n,a?e.appendChild(r):t.write(r.outerHTML)},B=function(e,n){switch(n.displayData.contentType){case"application/javascript":q(e,n.displayData.content,n.options.async);break;case"text/html":!function(e,n){var a=t.createElement("iframe");a.id="sas_i"+n.ad.formatId+(n.ad.instance?"_"+n.ad.instance:""),a.scrolling="no",a.frameBorder=0,a.width=n.displayData.width,a.height=n.displayData.height,a.style.margin=0,a.style.padding=0,a.style.width=n.displayData.width+"px",a.style.height=n.displayData.height+"px",e.appendChild(a),a.contentWindow.document.open("text/html","replace"),a.contentWindow.document.write(n.displayData.content),a.contentWindow.document.close()}(e,n)}},V=1,G=function(t){var n="__sas_gcbk_"+V++;return e[n]=function(){e[n]&&(e[n]=void 0,t())},n},H=function(e,n,a,r,i,o){var s=t.createElement("script");s.id="sas_script"+W++,s.type="text/javascript";var c="function"==typeof n?n():n;o&&(c=Y(c,o)),s.src=c,s.async=a,a?(sas.events.addLoadEvent(s,r),sas.events.addEvent(s,"error",i)):(s.setAttribute("onload",G(r)+"()"),s.setAttribute("onError",G(i)+"()")),a?e.appendChild(s):t.write(s.outerHTML)},z=function(t,n,a){n=sas.utils.extend({forceMasterFlag:!1},n),l=!!n.forceMasterFlag||l,c=n.resetTimestamp?i():c,a==sas.callType.ONECALL&&Q();var r=X(),o=De()||(e.location.origin?e.location.origin+e.location.pathname:""),s=screen.height,d=screen.width;return function(e,t,n,a,r,i,o){var s={timestamp:n,networkId:r.networkId,getAdContent:r.getAdContent,siteId:e.siteId,pageId:e.pageId,pageName:e.pageName,master:t,noAdCallback:"sas.noad",pageUrl:a,screen:{height:i,width:o},uid:v||0,appName:m||"",bundleId:y||"",noCookie:r.noCookie,schain:e.schain||"",clickTrackingUrl:r.clickTrackingUrl,clickTrackingEncodingLevel:r.clickTrackingEncodingLevel,ads:[]},c=_e();c&&(s.gdpr_consent=c);var l=we();l&&(s.addtl_consent=l);var d=Ce();d&&(s.us_privacy=d);var u=function(e){if(e.length>1&&"function"==typeof Array.prototype.findIndex){var t=e.reverse();e=t.filter((function(e,n){return t.findIndex((function(t){return t.source===e.source}))===n}))}return e.length&&"object"==typeof e[0]&&e[0].source&&e[0].uids&&e[0].uids.length?e:null}(w);u?s.eids=u:sas.events.history("setEidsCalled").length&&console.warn("The eids object is malformed, no eids will be sent in the adcall");C&&(s.partnerExtUids=C);for(var p=0;p<e.formats.length;p++){var f=e.formats[p],h=f.tagId?f.tagId:"sas_"+f.id,g=$(h)||{};f.target&&sas.overwriteTarget(f.target,h),s.ads.push({formatId:f.id,originalFormatId:f.originalFormatId,tagId:h,bidfloor:f.overriddenBidfloor,target:sas.updateTarget(e.target,h),currency:f.currency,headerBidding:g,isLazy:!!Oe(f.id),isAdRefresh:Se(f.id)})}return s}(t,r,c,o,n,s,d)},J=function(e,t,n){return t.domain+"/"+(n==sas.callType.ONECALL?t.networkId+"/call":"genericpost")},K=function(t,n,a){a=sas.utils.extend({forceMasterFlag:!1},a),l=!!a.forceMasterFlag||l,c=a.resetTimestamp?i():c,t==sas.callType.ONECALL&&Q();var r=X(),o=De()||(e.location.origin?e.location.origin+e.location.pathname:""),s=screen.height,d=screen.width;return function(){return sas.utils.buildUrl(a.domain,t,n,r,c,a.async,a.networkId,v,m,y,o,C,$(n.tagId),a.clickTrackingUrl,a.clickTrackingEncodingLevel,s,d)}},Y=function(e,t){return null!=t&&(e+="&hb_cpm="+t.cpm+"&hb_bid="+t.bidder+"&hb_ccy="+t.currency+"&hb_dealid="+t.dealId),e},$=function(e){if(O[e]){if(!isNaN(O[e].cpm)){var t=O[e];return O[e]=void 0,t}return O[e]=void 0,null}return null},X=function(){return Q()?"m":"s"},Q=function(){return!!l&&(l=!1,!0)},Z=function(e,n){var a,i,o=t.getElementById(e);if(!o&&(n||!r)){var s=t.currentScript||t.scripts[t.scripts.length-1];s.async||(s.parentNode.insertBefore((a=e,(i=t.createElement("div")).id=a,i),s),o=t.getElementById(e))}return o||console.warn("The tag element with id="+e+" wasn't found and couldn't be created as well!"),o},ee=function(n,a){if(he.hasOwnProperty(n)||(he[n]=new sas.utils.Latch(["loaded","smartLazyLoading"+n]),fe.addListener((function(){for(var e in he)he[e].notify("loaded")}))),sas.lazyLoading&&sas.lazyLoading.formats&&(0===sas.lazyLoading.formats.length||sas.lazyLoading.formats.length&&-1!==sas.lazyLoading.formats.indexOf(parseInt(a)))){var r=null;e.IntersectionObserver&&(r=new IntersectionObserver((function(e,t){e.forEach((function(e){if(e.intersectionRatio>0||e.isIntersecting){var n=e.target.id;t.unobserve(e.target),he.hasOwnProperty(n)&&he[n].notify("smartLazyLoading"+n)}}))}),{rootMargin:sas.lazyLoading.margin})),r&&r.observe(t.getElementById(n))}else he[n].notify("smartLazyLoading"+n)},te=[];sas.events.addLoadEvent(t,(function(){r=!0,te.push=function(e){e()};for(var e=0;e<te.length;e++)te[e]()}));var ne=!1;sas.events.addMessageEvent(e,(function(){if(arguments&&!(arguments.length<1)){var e=arguments[0];if(e&&e.data&&"string"==typeof e.data&&!(e.data.indexOf("SMRT")<0)){var t=e.data.split(" ");if(!(t.length<2)){var n=t[2]||"";if("sas.noad"===t[1]||"NOAD"===t[1])try{sas.noad(n)}catch(e){}}}}}));var ae,re=function(e,t){if(!e)return!1;if(!t)return!1;var n,a=sas._networks[t.networkId];return!!(a&&a.f&&a.f[e.formatId]&&(n=a.f[e.formatId],Math.random()<n))},ie=function(t){return"function"==typeof e.URLSearchParams?new URLSearchParams(e.location.search).get(t):null},oe=function(e){var t=ie(e);return t=null!==t&&t.length?Number(t):null},se=function(e,arguments,t){var n=void 0===t?"info":t;if(ce&&e.length&&void 0!==console[n]){var a={txt:"%csmart",css:"background: #ffd500; border-radius: 2px; color: #feffff; font-family: lato,sans-serif; padding:1px 3px;"};void 0!==arguments?console[n](a.txt,a.css,e,arguments):console[n](a.txt,a.css,e)}},ce=!1,le=function(){var e=ie("sas_debug");null!==e&&(ce="true"===e)},de={mode:!1,modeReady:!1,url:"//www.saspreview.com/current/Utilities/noshow.ashx?",ruid:null,formatId:null,tagId:null,insertionId:null},ue=function(){var e=ie("sas_preview");null!==e&&(de.mode="true"===e,de.mode&&(de.modeReady=(de.insertionId=oe("insid"),de.ruid=oe("ruid"),de.formatId=oe("formatId"),de.tagId=ie("tagId"),null!==de.insertionId&&null!==de.ruid&&null!==de.formatId?(se("Preview mode is active, we have required parameters"),!0):(se("Preview mode is active, but some required parameters are missing"),se("Preview insertionId ",de.insertionId),se("Preview ruid ",de.ruid),se("Preview formatId ",de.formatId),!1))))},pe=!1,fe=new sas.utils.Latch(["loaded"]),he={};sas.setup=function(t){if(pe)throw new Error("sas.setup can only be called once");sas.events.fire("setupCalled",t,"setupCalledId"),le(),ue(),pe=!0,s=(t=t||{}).domain||o,f=t.async||f,sas_ajax=f,p=t.networkid||p,h=t.renderMode||h,g=t.inSequence||g,v=t.uid,C=sas.utils.extend(C,t.partnerIds),y=t.bundleId,m=t.appName,e.sas_renderMode=h,sas.configure({id:p}),f&&h!=sas.renderMode.DEFAULT||fe.notify("loaded"),h==sas.renderMode.ON_DEMAND&&(ae=setTimeout((function(){sas.render()}),parseInt(t.renderModeTimeout)||5e3))},sas.call=function(t,a,r){"string"!=typeof t&&(r=sas.utils.extend({},a,{async:!0}),a=t,t="std",h==sas.renderMode.DEFAULT&&fe.notify("loaded"),le(),ue()),r=sas.utils.extend({},r),t==sas.callType.ONECALL?a.isOnecallJSON=!!a.formats:t==sas.callType.STD&&(a.usePostStandard=!!e.sas_usePostStandard),(a.isOnecallJSON||a.usePostStandard)&&(r.async=!0),(a=sas.utils.extend({},a)).siteId=a.siteId||a.siteid,a.pageId=a.pageId||a.pageid,a.pageName=a.pageName||a.pagename,a.formatId=a.formatId||a.formatid,a.siteId||F(R);var i,o,c=(i=navigator.userAgent.indexOf("iPad")>0,o=""+navigator.userAgent.indexOf("iPhone")>0,i||o?i?"ipad":"iphone":navigator.userAgent.indexOf("Android")>0?"android":"");if(c.length>0&&(a.target&&a.target.length>0&&(a.target+=";"),a.target+="platform="+c),a.pageId||a.pageName||F(x),a.formatId||a.formats||F(P),(r=sas.utils.extend({},A,{async:f,domain:s,networkId:p},r))&&r.networkId){var l=parseInt(r.networkId);if(l>0&&!sas._networks[l])return sas._pendingCommands[l]=sas._pendingCommands[l]||[],void sas._pendingCommands[l].push((function(){sas.call(t,a,r)}))}if(!re(a,r)){if(!a||!a.siteId||!a.pageId&&!a.pageName||!a.formatId&&!a.formats)throw new Error("Missing parameter(s)");if(!a.formats){a.formats=[];for(var d=(""+a.formatId).replace(/\s/g,"").split(","),u=0;u<d.length;u++)a.formats.push({id:d[u]})}for(u=0;u<a.formats.length;u++){var v=a.formats[u];t==sas.callType.STD||t==sas.callType.IFRAME?(a.tagId=v.tagId=a.tagId||v.tagId||"sas_"+v.id,Z(a.tagId,r.async)):v.tagId=v.tagId||"sas_"+v.id;var m=b[v.tagId]||new n(v.tagId);m.onCall(t,sas.utils.extend({},a,{tagId:v.tagId,formatId:v.id,originalFormatId:v.id}),r),m.reset(!!r.reset,t==sas.callType.ONECALL),b[v.tagId]=m,sas.lazyLoading&&f&&t==sas.callType.STD&&ee(v.tagId,v.id)}r.async&&h==sas.renderMode.READY&&(ne||(ne=!0,te.push((function(){sas.render()})))),a.passback||I.push({callType:t,ad:sas.utils.extend({},a),options:sas.utils.extend({},r)}),r.async&&g?fe.addListener((function(){var e,n;e={callType:t,ad:a,options:r},n=function(){if(T.length>0){D=!0;var e=T.shift(),t=e.options.onLoad;e.options.onLoad=function(e){n(),t(e)},sas.events.fire("call",{callType:e.callType,ad:e.ad,options:e.options},e.callType)}else D=!1},T.push(e),D||n()})):sas.events.fire("call",{callType:t,ad:a,options:r},t)}},sas.passback=function(e){var t=e.tagId?e.tagId:"sas_"+e.formatId;if(_[t]={current:-1,ad:e},e.noadUrl){var n=function(){(new Image).src=e.noadUrl,sas.events.off("noad",n,t)};sas.events.on("noad",n,t)}sas.next(t)},sas.next=function(e){var n=U(e),a=_[n.ad.tagId];if(n&&a){var r=t.getElementById(n.ad.tagId);if(r&&(r.innerHTML=""),a.current>=0&&((new Image).src=a.ad.chain[a.current].noadUrl),a.current++,a.current<a.ad.chain.length)if(a.ad.chain[a.current].countUrl&&((new Image).src=a.ad.chain[a.current].countUrl),a.ad.chain[a.current].script)q(r,a.ad.chain[a.current].script,n.options.async);else{var i=$(r.id);H(r,a.ad.chain[a.current].scriptUrl,n.options.async,null,null,i)}else sas.events.fire("noad",{formatId:n.ad.formatId,instance:n.ad.instance,tagId:n.ad.tagId},n.ad.tagId)}};var ge={forceMasterFlag:!1,resetTimestamp:!0,target:void 0,autoRefresh:!1};sas.refresh=function(e,t){if(fe.isComplete()){t=sas.utils.extend({},ge,e,t);var n=a;if(arguments.length<=1&&"string"!=typeof e&&isNaN(e))n=function(e){for(var n in b)b[n].reset(),k[b[n].ad.formatId]=t.autoRefresh;for(n=0;n<I.length;n++)I[n].options.async&&(e&&(I[n].ad.target=e),sas.events.fire("call",{callType:I[n].callType,ad:sas.utils.extend({},I[n].ad,{target:e}),options:sas.utils.extend({},I[n].options,t)},I[n].callType))};else{var r=U(e);if(!r||!r.options.async)return;k[r.ad.formatId]=t.autoRefresh,r.reset(),n=function(e){null!=e&&(r.ad.target=e||r.ad.target),sas.events.fire("call",{callType:sas.callType.STD,ad:r.ad,options:r.options},sas.callType.STD)}}l=!!t.forceMasterFlag||l,c=t.resetTimestamp?i():c,n(t.target)}},sas.getTag=function(e){var n=U(e);return n?t.getElementById(n.ad.tagId):null},sas.clean=function(e){if(0==arguments.length)for(var t in b){var n;(n=b[t]).clean()}else(n=U(e))&&n.clean()},sas.noad=function(e,t){var n=U(e);if(n){var a={formatId:n.ad.formatId,instance:n.ad.instance,tagId:n.ad.tagId};t&&(a.hbRenderUrls={hbRenderFailedUrl:t.HbRenderFailedUrl,hbRenderSuccessUrl:t.HbRenderSuccessUrl}),sas.events.fire("noad",a,n.ad.tagId)}},sas.render=function(n){if(0==arguments.length){if(clearTimeout(ae),!fe.isComplete()&&(h==sas.renderMode.READY&&r||h==sas.renderMode.ON_DEMAND))for(var a in fe.notify("loaded"),b){var i;"pending"!=(i=b[a]).renderStatus||!i.options.async&&r||i.render()}}else if(i=U(n)){a=i.ad.tagId;if(Z(a,i.options.async),sas.lazyLoading&&sas.lazyLoading.formats&&(-1!==sas.lazyLoading.formats.indexOf(Number(i.ad.originalFormatId))||0===sas.lazyLoading.formats.length)){var o=null;e.IntersectionObserver&&(o=new IntersectionObserver((function(e,t){e.forEach((function(e){(e.intersectionRatio>0||e.isIntersecting)&&(t.unobserve(e.target),sas.lazyLoading.event?sas.events.on(sas.lazyLoading.event,(function(){i.render()}),a):i.render(),sas.events.fire("beforeFetch",i))}))}),{rootMargin:sas.lazyLoading.margin})),o?o.observe(t.getElementById(a)):i.render()}else i.render()}},sas.enableLazyLoading=function(t){f||console.warn("If lazy loading is not working, please make sure you enable it for asynchronous calls");var n={};n.formats=t.formats||[];var a=void 0!==e.orientation||-1!==navigator.userAgent.indexOf("IEMobile")?t.mobileFetchRatio||.8:t.fetchRatio||.1;n.margin=Math.round(100*(isNaN(a)||a<0?.1:a))+"%",n.event=t.event||null,sas.lazyLoading=n},sas.setPartnerId=function(e,t){C[e]=t},sas.appendHtml=function(e,n){var a=t.getElementById(e);if(Range&&Range.prototype.createContextualFragment)a.appendChild(t.createRange().createContextualFragment(n));else{var r=t.createElement("div");r.innerHTML=n;for(var i=r.childNodes,o=0;o<i.length;o++)a.appendChild(ke(i[o]))}},sas.configure=function(e){if(e&&e.id&&!(parseInt(e.id)<=0)&&!sas._networks[e.id]&&(sas._networks[e.id]=e,sas._pendingCommands[e.id]))for(var t;t=sas._pendingCommands[e.id].shift();)t()},sas.setEids=function(e){se("Call sas.setEids with",e),"object"==typeof e&&(w=w.concat(e)),sas.events.fire("setEidsCalled",{})},sas.setHeaderBiddingWinner=function(e,t){O[e]=null==t||"object"!=typeof t?null:{bidder:t.bidder,cpm:t.cpm,currency:t.currency,dealId:t.dealId},sas.events.fire("setHeaderBiddingWinner",{tagId:e,headBiddingData:sas.utils.extend({},O[e])},e)},sas.hbRenderSuccess=function(e){sas.events.fire("hbRender",{success:!0},e)},sas.hbRenderFailed=function(e){sas.events.fire("hbRender",{success:!1},e)},sas.setGdprConsentData=function(e){S=e},sas.utils.buildUrl=function(e,t,n,a,r,i,o,s,c,l,u,p,f,h,g,v,m){var y={};if(null!=o&&(y.nwid=o),y.siteid=n.siteId,y.pgid=n.pageId,y.pgname=n.pageName,y.fmtid=n.formatId,t==sas.callType.IFRAME&&(y.out="iframe"),i&&(y.async=1),t!=sas.callType.ONECALL){var b=a.split("=");y.visit=b.length>1?b[1]:a}else y.oc=1;for(var I in y.tmstp=r,n.target=sas.updateTarget(n.target,n.tagId),n.target&&(y.tgt=d(n.target)),t!=sas.callType.ONECALL&&(y.orgfmtid=n.originalFormatId,y.tag=n.tagId),s&&(y.uid=s),c&&(y.appname=c),l&&(y.buid=l),v&&(y.sh=v),m&&(y.sw=m),u&&(y.pgDomain=d(u)),f&&t!=sas.callType.ONECALL&&(y.hb_bid=f.bidder,y.hb_cpm=f.cpm,y.hb_ccy=f.currency,y.hb_dealid=f.dealId),h&&(y.clcturl=d(h)),g&&(y.clctenc=g),p)y[encodeURIComponent("extuid-"+I)]=encodeURIComponent(p[I]);var w=_e();w&&(y.gdpr_consent=w);var _=we();_&&(y.addtl_consent=_);var C=Ce();C&&(y.us_privacy=C),y.noadcbk="sas.noad",n.schain&&(y.schain=n.schain),y.isLazy=Oe(n.formatId),y.isAdRefresh=Se(n.formatId);var O=[];for(var S in y)null!=y[S]&&O.push(S+"="+y[S]);return e+"/ac?"+O.join("&")};var ve=function(e,t,n){var a=e.indexOf("/");if(a<0)throw new Error("Invalid argument : sas_pageid");this.siteId=e.substring(0,a);var r=e.substring(a+1);0==r.indexOf("(")&&r.indexOf(")")==r.length-1&&(r=r.slice(1,r.length-1));var i=parseInt(r);i+""==r?this.pageId=i:this.pageName=r,this.formatId=t,this.target=n};e.sas_ads=sas,e.sas_ajax=!1,e.sas_manager=null,e.sas_unrenderedFormats=[],e.sas_callAd=sas.callAd,e.sas_callAds=sas.callAds,sas.callAd=sas.refresh,sas.callAds=function(){fe.isComplete()?sas.refresh():sas.render()},sas.cleanAd=sas.clean,sas.cleanAds=sas.clean;var me=function(e){var n=t.createElement("div");n.innerHTML="_"+e;var a=n.childNodes[1];return{scriptType:a.tagName.toLowerCase(),scriptSrc:a.src,width:a.width||0,height:a.height||0}};e.sas_render=function(e,t,n,a,r){sas.render(e)},e.SmartAdServerAjaxOneCall=function(e,t){sas.render(t)},e.SmartAdServer_iframe=function(e,t,n,a,r){var i=new ve(e,t,n);i.width=a,i.height=r,sas.call("iframe",i)},e.SmartAdServer=function(e,t,n){var a=new ve(e,t,n);sas.call(sas.callType.STD,a)},e.SmartAdServerAjax=SmartAdServer,e.sas_gcf=function(e){return t.getElementById("sas_"+e)},e.sas_appendToContainer=function(e,n){var a=t.getElementById("sas_"+e);if(a){if("string"==typeof n){var r=t.createElement("div");r.innerHTML=n,n=r}a.appendChild(n)}},e.sascc=function(e,t){(new Image).src=s+"/h/mcp?imgid="+e+"&pgid="+t+"&uid=[uid]&tmstp="+c+"&tgt=[targeting]"},e.sasmobile=function(e,t,n){var a=new ve(e,t,n);sas.call(sas.callType.STD,a)};var ye={};e.sas_addCleanListener=function(e,t){ye[e]=t},sas.events.on("clean",(function(e){ye[e.tagId]&&ye[e.tagId](),ye[e.formatId]&&ye[e.formatId]()})),e.sas_cleanAds=sas.clean,e.sas_cleanAd=sas.clean,sas.events.fire("Bootstrap",{time:"Start"}),sas.cmd=sas.cmd||[],sas.cmd.push=function(e){e()};for(var be=0;be<sas.cmd.length;be++)sas.cmd[be]();sas.events.fire("Bootstrap",{time:"End"})}function Ie(t,n,a,r,i,o,s){var c=new XMLHttpRequest;c.onreadystatechange=function(){if(4==this.readyState){var e=o(this.responseText);200==this.status?a(e):r(e)}},c.withCredentials=!0;var l=!0;try{c.open("POST",t,!0)}catch(e){if(l=!1,sas.utils.getIEVersion()<=9&&-2147024891==e.number){var d=new XDomainRequest;d.open("POST",t),d.ontimeout=function(){r()},d.onerror=function(){r()},d.onload=function(){var e=JSON.parse(this.responseText);a(e)},d.send(JSON.stringify(n))}}l&&(c.setRequestHeader("content-type",s),!(!e.chrome||!e.chrome.webstore&&!e.chrome.runtime)&&c.setRequestHeader&&c.setRequestHeader("Save-Data","off"),c.send(JSON.stringify(n)))}function we(){if(sas.utils.isAddtlConsentBlocked())return null;var e=sas.utils.getLocalStorageItemSafely("sas_addtl_euconsent_v2");return e||null}function _e(){if(S)return S;var e=sas.utils.getLocalStorageItemSafely("sas_euconsent");return sas.utils.getLocalStorageItemSafely("sas_euconsent_v2")||e}function Ce(){var e=sas.utils.getLocalStorageItemSafely("sas_usprivacy");return e||null}function Oe(e){return sas.lazyLoading&&sas.lazyLoading.formats&&(0===sas.lazyLoading.formats.length||sas.lazyLoading.formats.length&&-1!==sas.lazyLoading.formats.indexOf(parseInt(e)))?1:0}function Se(e){return void 0!==k[e]?k[e]?2:1:0}function ke(e){var n;if("script"==e.tagName.toLowerCase())n=t.createElement("script"),e.type&&(n.type=e.type),e.src&&(n.src=e.src),e.text&&(n.text=e.text);else{n=e.cloneNode(!1);for(var a=e.childNodes,r=0;r<a.length;r++)n.appendChild(ke(a[r]))}return n}function De(){var t=e;try{for(;t.parent.document;){if(t.parent.document===t.document)return t.location.origin?t.location.origin+t.location.pathname:"";t=t.parent}}catch(e){}if("function"==typeof URLSearchParams){var n=new URLSearchParams(t.location.search).get("pgDomain");if(n)return n}try{try{if(e.top.location.href)return e.top.location.origin?e.top.location.origin+e.top.location.pathname:""}catch(e){}var a=e.location.ancestorOrigins;return 1==a.length?t.document.referrer:a[a.length-1]}catch(e){return t.document.referrer}}function Te(e){var n,a=t.createElement("a"),r=/(?:^\?|&)([^=&]+)=?([^&]*)(?=&|$)/g;a.href=e;for(var i=a.search,o=[];null!==(n=r.exec(i));){"extuid-"===(l={n:u(n[1]),v:u(n[2])}).n.substr(0,7)&&C[l.n.substr(7)]||o.push(l)}for(var s in C)o.push({n:"extuid-"+s,v:C[s]});i="";for(var c=0;c<o.length;c++){var l=o[c];i+=(0===c?"?":"&")+d(l.n),""!==l.v&&(i+="="+d(l.v))}return a.search=i,a.href}}(window,document);/*_ts_*/;if(window.sas && sas.configure){sas.configure({id:1097});}/*_ts_*/